bbolli / tumblr-utils

Utilities for dealing with Tumblr blogs, Tumblr backup
GNU General Public License v3.0
668 stars 124 forks source link

Modernize Python 2 code to get ready for Python 3 #124

Closed cclauss closed 4 years ago

cclauss commented 5 years ago

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

nightpool commented 5 years ago

implying tumblr will live long enough for the 2 -> 3 transition to matter

(i kid, i kid)

On Tue, Dec 4, 2018 at 5:54 PM cclauss notifications@github.com wrote:

  • 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.

You can view, comment on, or merge this pull request online at:

https://github.com/bbolli/tumblr-utils/pull/124 Commit Summary

  • Modernize Python 2 code to get ready for Python 3

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bbolli/tumblr-utils/pull/124, or mute the thread https://github.com/notifications/unsubscribe-auth/AAORV7q6PcpierTXrk87l8RHclAzYzizks5u1v0IgaJpZM4ZBqia .