lawlite19 / MachineLearning_Python

机器学习算法python实现
MIT License
7.29k stars 2.44k forks source link

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

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 may 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
lawlite19 commented 6 years ago

Thanks for your contribution and sorry for my late reply.