Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • release
2 results

pyversion

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Gavin Weir authored and GitHub committed
    bfc5973b
    History
    Name Last commit Last update
    .gitignore
    README.md
    __init__.py
    version.py

    pyversion

    This is an even stupider edit

    This is a helper module for compatability between python 2 and python 3.

    Some modules have different behaviors or names between python versions. ex //
    Instead of importing urllib from the module urllib, import it from pyversion

    Replace "from pyversion.version import urllib"

    Add this to the top of your modules:

    ===========================================================================

    ===========================================================================

    Try to handle most differences between python 2 and python 3 compatability

    from future import absolute_import, with_statement, absolute_import,
    division, print_function, unicode_literals