Changes between Version 2 and Version 3 of Plan/Python3
- Timestamp:
- 10/24/2016 08:41:59 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Plan/Python3
v2 v3 21 21 Although `2to3` will highlight areas requiring changes it cannot be relied upon to make the correct decisions especially concerting bytes and unicode strings so do not commit code changes generated by it. 22 22 23 Also see a wrapper to `2to3` called `python-modernize` .23 Also see a wrapper to `2to3` called `python-modernize` or `python-futurize`. 24 24 25 25 == Required changes == 26 26 27 * Change setup.py from `setuptools` to `distribute`28 27 * Magic Method `__cmp__` in `common.py` replaced with `__lt__` 29 * Found at least one instance of raise with three args in Blocklist plugin30 * peerguardian.py in Blocklist plugin - Rename `next()` to `__next__()` and add `next = __next__` to class31 28 * `iteritems()` where needed replace with try/except: http://python3porting.com/differences.html#dictionary-methods 32 29 … … 44 41 == Compatibility Module == 45 42 46 It will be easier and simpler to use either ` six` or `pies` to enable writing compatible code.43 It will be easier and simpler to use either `future`, `six` or `pies` to enable writing compatible code. 47 44 48 45