[tor-bugs] #7835 [Stem]: TypeError in __init__.py due to attempt to concatenate list with tuple (typo?)

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Dec 31 10:22:14 UTC 2012


#7835: TypeError in __init__.py due to attempt to concatenate list with tuple
(typo?)
--------------------+-------------------------------------------------------
 Reporter:  peer    |          Owner:  atagar
     Type:  defect  |         Status:  new   
 Priority:  normal  |      Milestone:        
Component:  Stem    |        Version:        
 Keywords:          |         Parent:        
   Points:          |   Actualpoints:        
--------------------+-------------------------------------------------------
Changes (by peer):

  * status:  needs_information => new


Comment:

 The issue occurs on Ubuntu 12.10 with Python 2.7.3 and 3.2.3.

 To reproduce, the statement "from stem.descriptor.reader import
 DescriptorReader" is enough.

 The library generated from calling python(3) setup.py install --home=~ on
 Ubuntu 12.10 results code that is slightly different from the source.

 The generated version has

 {{{
 StreamClosureReason =
 stem.util.enum.UppercaseEnum(*(list(RelayEndReason.keys()) + ("END",
 "PRIVATE_ADDR",)))
 }}}

 while the source has

 {{{
 StreamClosureReason = stem.util.enum.UppercaseEnum(*(RelayEndReason.keys()
 + ("END", "PRIVATE_ADDR",)))
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7835#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list