[tor-commits] [ooni-probe/master] str().replace() returns a copy and does not modify in place.
art at torproject.org
art at torproject.org
Wed Nov 6 09:12:44 UTC 2013
commit 08d1c15424b9c85beadd00a562b25289cd4ff997
Author: aagbsn <aagbsn at extc.org>
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))
More information about the tor-commits
mailing list