[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #1777 [Tor - Torctl]: TorCtl ExitPolicyLine Deprecation Warning



#1777: TorCtl ExitPolicyLine Deprecation Warning
--------------------------+-------------------------------------------------
 Reporter:  atagar        |       Owner:  mikeperry
     Type:  defect        |      Status:  new      
 Priority:  normal        |   Milestone:           
Component:  Tor - Torctl  |     Version:           
 Keywords:                |      Parent:           
--------------------------+-------------------------------------------------
 Hi, the __str__ method of TorCtl's ExitPolicyLine class has an issue,
 producing deprecation warnings in python 2.5 and above:

 DeprecationWarning: struct integer overflow masking is deprecated

 Apparently it's an issue with the method's struct.pack calls. A discussion
 of the issue and fix are available at:
 http://www.groupsrv.com/computers/about360960.html

 Cheers! -Damian

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