vishnubob / python-midi

Python MIDI library
MIT License
1.51k stars 369 forks source link

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

Closed cclauss closed 5 years ago

cclauss commented 6 years ago

Make the minimal, safe changes required to convert the repo's code to be syntax compatible with both Python 2 and Python 3. There are other changes required to complete a port to Python 3 but this PR is a minimal, safe first step.

Run: futurize --stage1 -w */.py

See Stage 1: "safe" fixes http://python-future.org/automatic_conversion.html#stage-1-safe-fixes

Another issue that must be fixed: Undefined name 'cmp' on ./src/events.py line 53

belm0 commented 6 years ago

duplicate effort of #130