Skip to content

Apply some syntax changes accepted by Python 2 as well as Python 3 #6

wants to merge 3 commits into from

2 participants

josephw commented Mar 18, 2013

Use 2to3 to make some syntax changes for Python 3 that are also accepted
by Python 2.

  • Use except ... as
  • Use 'in' instead of has_key
  • Use repr instead of backticks
  • Use '.' for relative imports
  • Replace '<>' with '!='

Nice! Much more readable this way, IMHO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.