-
-
Save shinux/72eae33a3a737021ca3f to your computer and use it in GitHub Desktop.
simple2to3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if PY3: | |
string_types = str, | |
integer_types = int, | |
text_type = str | |
xrange = range | |
else: | |
string_types = basestring, | |
integer_types = (int, long) | |
text_type = unicode | |
xrange = xrange |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment