[tor-bugs] #14075 [Stem]: Unified codebase for Python 2&3
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Jan 2 21:16:57 UTC 2015
#14075: Unified codebase for Python 2&3
-----------------------------+---------------------------------------------
Reporter: Foxboron | Owner: atagar
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Resolution: | Keywords: python, 3, 2, unified, codebase
Actual Points: | Parent ID:
Points: |
-----------------------------+---------------------------------------------
Comment (by atagar):
Hi Foxboron, this is great! I started poking around it and first thoughts
are...
1. All of the dict's keys(), values(), and items() calls are now wrapped
by list(). I know 2to3 does this, and I suspect it's maybe to have a
defensive copy. But most of our calls to this are in for loops where it's
not necessary.
2. I see the unit tests work, but the integ tests don't. It's most due to
unicode strings with 'u'. I'm guessing that you didn't
[https://stem.torproject.org/faq.html#how-do-i-run-the-tests try the integ
tests]?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14075#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list