Created
August 23, 2017 18:12
-
-
Save alaindomissy/7fb1ac8a4f4ade174d6c154ba2b50514 to your computer and use it in GitHub Desktop.
python2 python3 compatibility imports template
This file contains hidden or 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
#!/usr/bin/env python | |
# transitionning to python2/python3 support | |
# these two are really a minimum | |
from __future__ import print_function | |
from __future__ import division | |
# uncomment from this compatibility import list, as py3/py2 support progresses | |
# from __future__ import absolute_import | |
# from __future__ import unicode_literals | |
# from future import standard_library | |
# from future.builtins import builtins | |
# from future.builtins import utils | |
# from future.utils import raise_with_traceback | |
# from future.utils import iteritems | |
# other imports should only come after this point | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment