Skip to content

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

Open
wants to merge 3 commits into from

2 participants

@josephw
Collaborator
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 '!='
@mathiasbynens

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.