[tor-bugs] #28863 [Core Tor/Fallback Scripts]: updateFallbackDirs.py thinks it is python 3 compatible but it is not
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Nov 29 01:09:05 UTC 2019
#28863: updateFallbackDirs.py thinks it is python 3 compatible but it is not
---------------------------------------+-----------------------------------
Reporter: starlight | Owner: (none)
Type: defect | Status: needs_information
Priority: Medium | Milestone:
Component: Core Tor/Fallback Scripts | Version:
Severity: Normal | Resolution:
Keywords: fallback-ci, 043-must | Actual Points:
Parent ID: #30971 | Points:
Reviewer: | Sponsor:
---------------------------------------+-----------------------------------
Comment (by teor):
I've done some research, here's what I've discovered:
* python 2's code freeze starts on 1 January 2020, the final release will
be around April at pycon 2020
* if we want to continue testing using python 2 during the transition, we
should use python-modernize or python-future, not 2to3
* python 3.6 is the earliest supported python 3; python 3.2, 3.3, and 3.5
added features that make porting easier
* we should try to use `if PY2` for any code that won't run in both
versions, in case there is a python 4 some day
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28863#comment:12>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list