commit 3930f1f1eda99bcf22fe574b95665f8ef47ffdc4 Merge: 7921a46 2b2a645 Author: Damian Johnson atagar@torproject.org Date: Sat Feb 2 10:12:02 2013 -0800
Python 3.x support
Adding support for the python 3.x series. You can install the python 3 version of stem by running...
python3 setup.py install
The 2to3 conversion can be tested trough run_tests.py with the '--python3' argument. It passes all of the unit tests and the integ tests... er, don't technically fail. However, python 3.2 has a bug causing a segfault when it gets to the BaseController integ tests. Filed a ticket about it...
http://bugs.python.org/issue17105
However, stem's descriptor functionality checks out and this issue has likely been addressed in later python releases so there's little point to hold off on merging.
Ticket for python 3 support...
https://trac.torproject.org/7843
run_tests.py | 163 +++++++++++++++++++------ stem/__init__.py | 4 +- stem/connection.py | 20 +++- stem/descriptor/__init__.py | 107 ++++++++++++++--- stem/descriptor/extrainfo_descriptor.py | 13 +- stem/descriptor/networkstatus.py | 82 ++++++++++--- stem/descriptor/reader.py | 12 ++- stem/descriptor/router_status_entry.py | 69 ++++++++--- stem/descriptor/server_descriptor.py | 49 +++++--- stem/exit_policy.py | 6 +- stem/prereq.py | 25 +++-- stem/process.py | 9 ++- stem/response/authchallenge.py | 5 +- stem/response/events.py | 4 +- stem/socket.py | 19 +++- stem/util/connection.py | 4 +- stem/util/enum.py | 10 +- stem/util/str_tools.py | 58 +++++++++ stem/util/system.py | 7 +- stem/util/tor_tools.py | 6 +- stem/version.py | 40 ++++--- test/check_whitespace.py | 16 ++- test/integ/descriptor/__init__.py | 8 +- test/integ/descriptor/extrainfo_descriptor.py | 26 ++--- test/integ/descriptor/networkstatus.py | 50 +++----- test/integ/descriptor/reader.py | 19 ++- test/integ/descriptor/server_descriptor.py | 71 +++-------- test/integ/util/proc.py | 6 +- test/mocking.py | 47 +++++--- test/output.py | 2 + test/settings.cfg | 6 +- test/unit/descriptor/reader.py | 36 +++--- test/unit/descriptor/router_status_entry.py | 4 +- test/unit/descriptor/server_descriptor.py | 3 +- test/unit/response/authchallenge.py | 4 +- test/unit/util/enum.py | 2 +- test/unit/util/proc.py | 18 ++- test/unit/util/system.py | 2 +- test/unit/version.py | 6 +- 39 files changed, 704 insertions(+), 334 deletions(-)