Skip to content
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

add python 3 support #56

Merged
merged 16 commits into from
Dec 15, 2014
Merged

add python 3 support #56

merged 16 commits into from
Dec 15, 2014

Conversation

binux
Copy link
Owner

@binux binux commented Dec 14, 2014

No description provided.

fixed:
absolute_import
from six.moves.urllib import parse as urlparse
thread.get_ident() -> threading.current_thread().ident
basestring -> six.string_types
__metaclass__ -> add_metaclass
UserDict.DictMixin -> collections.Mapping (and support for new dict)
division
StringIO -> BytesIO
print_function
unicode -> six.text_type
__builtins__ -> six.moves.builtins
reload -> six.reload_module
dict.iteritems() -> six.iteritems(dict)
dict.iterkeys() -> for k in dict
dict.values() -> list(six.itervalues(dict))
dict.itervalues() -> six.itervalues(dict)
raise exc_type, exc_value, tb -> six.reraise(exc_type, exc_value, tb)
binux added a commit that referenced this pull request Dec 15, 2014
add python 3 support
@binux binux merged commit 8741644 into master Dec 15, 2014
@binux binux deleted the six branch December 15, 2014 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants