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

[tor-commits] [ooni-probe/master] str().replace() returns a copy and does not modify in place.



commit 08d1c15424b9c85beadd00a562b25289cd4ff997
Author: aagbsn <aagbsn@xxxxxxxx>
Date:   Thu Oct 10 14:07:59 2013 +0000

    str().replace() returns a copy and does not modify in place.
---
 ooni/reporter.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ooni/reporter.py b/ooni/reporter.py
index 7566ca5..f4521b6 100644
--- a/ooni/reporter.py
+++ b/ooni/reporter.py
@@ -290,11 +290,12 @@ class OONIBReporter(OReporter):
         # do this with some deferred kung foo or instantiate the reporter after
         # tor is started.
 
-        from ooni.utils.trueheaders import SOCKS5Agent
+        from txsocksx.http import SOCKS5Agent
         from twisted.internet import reactor
         
         if self.collectorAddress.startswith('httpo://'):
-            self.collectorAddress.replace('httpo://', 'http://')
+            self.collectorAddress = \
+                    self.collectorAddress.replace('httpo://', 'http://')
             self.agent = SOCKS5Agent(reactor,
                     proxyEndpoint=TCP4ClientEndpoint(reactor, '127.0.0.1',
                         config.tor.socks_port))



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits