[Pkg-privacy-commits] [obfsproxy] 216/353: Fix bug when calling the __init__ of the base transport.
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:02:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository obfsproxy.
commit add265912ab0d307710f3869959eb70391a99ccd
Author: George Kadianakis <desnacked at riseup.net>
Date: Thu Dec 12 17:11:10 2013 +0000
Fix bug when calling the __init__ of the base transport.
---
obfsproxy/transports/b64.py | 3 +++
obfsproxy/transports/dummy.py | 2 +-
obfsproxy/transports/obfs2.py | 2 +-
obfsproxy/transports/obfs3.py | 2 +-
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/obfsproxy/transports/b64.py b/obfsproxy/transports/b64.py
index c50d5eb..7fde12c 100644
--- a/obfsproxy/transports/b64.py
+++ b/obfsproxy/transports/b64.py
@@ -45,6 +45,9 @@ class B64Transport(BaseTransport):
base64 before pushing them to the network.
"""
+ def __init__(self, transport_config):
+ super(B64Transport, self).__init__()
+
def receivedDownstream(self, data):
"""
Got data from downstream; relay them upstream.
diff --git a/obfsproxy/transports/dummy.py b/obfsproxy/transports/dummy.py
index 8755282..21ecf59 100644
--- a/obfsproxy/transports/dummy.py
+++ b/obfsproxy/transports/dummy.py
@@ -17,7 +17,7 @@ class DummyTransport(BaseTransport):
If you override __init__, you ought to call the super method too.
"""
- super(DummyTransport, self).__init__(transport_config)
+ super(DummyTransport, self).__init__()
def receivedDownstream(self, data):
"""
diff --git a/obfsproxy/transports/obfs2.py b/obfsproxy/transports/obfs2.py
index bf78ffa..36de060 100644
--- a/obfsproxy/transports/obfs2.py
+++ b/obfsproxy/transports/obfs2.py
@@ -53,7 +53,7 @@ class Obfs2Transport(base.BaseTransport):
def __init__(self, transport_config):
"""Initialize the obfs2 pluggable transport."""
- super(Obfs2Transport, self).__init__(transport_config)
+ super(Obfs2Transport, self).__init__()
# Check if the shared_secret class attribute was already
# instantiated. If not, instantiate it now.
diff --git a/obfsproxy/transports/obfs3.py b/obfsproxy/transports/obfs3.py
index 8fe9a39..454f407 100644
--- a/obfsproxy/transports/obfs3.py
+++ b/obfsproxy/transports/obfs3.py
@@ -33,7 +33,7 @@ class Obfs3Transport(base.BaseTransport):
def __init__(self, transport_config):
"""Initialize the obfs3 pluggable transport."""
- super(Obfs3Transport, self).__init__(transport_config)
+ super(Obfs3Transport, self).__init__()
# Our state.
self.state = ST_WAIT_FOR_KEY
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git
More information about the Pkg-privacy-commits
mailing list