Skip to content

Conversation

@cclauss
Copy link
Contributor

@cclauss cclauss commented Dec 4, 2018

These changes do not break compatibility with Python 2. Related to #96

  • Use print() function in both Python 2 and Python 3
    • print() is a function in Python 3.
  • Old style exceptions --> new style for Python 3
    • Python 3 treats old style exceptions as syntax errors but new style exceptions work as expected in both Python 2 and Python 3.

* Use __print()__ function in both Python 2 and Python 3
    * __print()__ is a function in Python 3.
* Old style exceptions --> new style for Python 3
    * Python 3 treats old style exceptions as syntax errors but new style exceptions work as expected in both Python 2 and Python 3.
@cclauss cclauss force-pushed the modernize-Python-2-codes branch from 0f1fa02 to 519c998 Compare December 4, 2018 23:02
@nightpool
Copy link

nightpool commented Dec 5, 2018 via email

@cclauss cclauss closed this Feb 26, 2020
@cclauss cclauss deleted the modernize-Python-2-codes branch February 26, 2020 17:52
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.

2 participants