pycontribs / pyrax

The Python SDK for the Rackspace Cloud
developer.rackspace.com
Apache License 2.0
237 stars 208 forks source link

Call types.MethodType correctly in Python 2 and 3 #637

Closed drewbrew closed 5 years ago

drewbrew commented 5 years ago

Reposting #534. For some reason, GitHub wasn't letting me merge master into that branch, so I'm resubmitting.

The call signature for types.MethodType changed in Python 3, causing an error. There is no six import or similar to handle this easily, so detecting the Python version is required.