CiscoUcs / ucsmsdk

Python SDK for Cisco UCSM
Other
80 stars 60 forks source link

Fix Python3 incompatibility (TypeError) #169

Closed vesposito closed 6 years ago

vesposito commented 6 years ago

The following error is thrown with Python3: TypeError: a bytes-like object is required, not 'str' ET.tostring(elem) is actually returning a bytestring, so we need the arguments of the replace() method to be bytes-encoded