zhoubear / open-paperless

Scan, index, and archive all of your paper documents (acquired by Mayan EDMS)
https://openpaperless.com
Other
2.56k stars 220 forks source link

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

Closed cclauss closed 6 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 might be 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