-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaced all types that are either missing or deprecated in Python3 with suitable alternatives that are still compatible with Python2. #82
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Also, grepping says this is the truth. My eyes hurt.
0159119
to
6e8cccf
Compare
94f2ad1
to
b32e5be
Compare
6e8cccf
to
ac13d73
Compare
ac13d73
to
8731dd2
Compare
8731dd2
to
884bb79
Compare
884bb79
to
f9de246
Compare
cba2d10
to
9a68f72
Compare
763cebd
to
8c07de8
Compare
8c07de8
to
988c02e
Compare
…stead use the `six.string_types` tuple for Python3 compatibility.
…tead use the `six.string_types` tuple for Python3 compatibility.
…nstead use the `six.string_types` tuple for Python3 compatibility.
… instead use the `six.string_types` tuple for Python3 compatibility.
… instead use the `six.string_types` tuple for Python3 compatibility.
…stead use the `six.string_types` tuple for Python3 compatibility.
…to instead use the `six.string_types` tuple for Python3 compatibility.
…nstead use the `six.string_types` tuple for Python3 compatibility.
…ead use the `six.string_types` tuple for Python3 compatibility.
…use the `six.string_types` tuple for Python3 compatibility.
… the module as it's been removed in Python3.
… module as it's been removed in Python3.
…odule as it's been removed in Python3.
…he module as it's been removed in Python3.
…module as it's been removed in Python3.
…module as it's been removed in Python3.
…missing in Python3 with `builtins.type`.
947fbb7
to
ecb2af2
Compare
…nce integers defined with `int` are the exact same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was also a simple rename for basestring
and types.NoneType
to six.string_types
, and removal of the long
type.. Looks like I was able to get everything.
Switching the merge target to |
Python3 removes types from the
types
module liketypes.NoneType
andtypes.TypeType
. This PR replacestypes.NoneType
withNone.__class__
, andtypes.TypeType
withbuiltins.type
. Thebasestring
base class is also removed as there is now only onestr
class to rule them all. In order to retain Python2 compatibility, this class is replaced withsix.string_types
.This PR is the third part of the fix for issue #76, and is dependant on PR #81.