[Pkg-privacy-commits] [obfsproxy] 17/353: PEP 8
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:01:33 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 96f8f02a985f3337eb42a2926789f56247e87cae
Author: Brandon Wiley <brandon at blanu.net>
Date: Fri Jul 6 13:30:16 2012 -0500
PEP 8
---
src/obfsproxy/framework/socks.py | 2 ++
src/obfsproxy/manager/clientManager.py | 2 +-
src/obfsproxy/manager/manager.py | 8 +++++---
src/obfsproxy/manager/serverManager.py | 3 ++-
4 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/obfsproxy/framework/socks.py b/src/obfsproxy/framework/socks.py
index 6452552..0abb038 100644
--- a/src/obfsproxy/framework/socks.py
+++ b/src/obfsproxy/framework/socks.py
@@ -72,8 +72,10 @@ class SocksHandler:
print 'sent response'
(addr, port) = uncompact(dest)
+
# addr='127.0.0.1'
# port=8183
+
print addr
print port
diff --git a/src/obfsproxy/manager/clientManager.py b/src/obfsproxy/manager/clientManager.py
index 8418c10..95b46f1 100644
--- a/src/obfsproxy/manager/clientManager.py
+++ b/src/obfsproxy/manager/clientManager.py
@@ -16,4 +16,4 @@ class ClientManager(Manager):
if __name__ == '__main__':
manager = ClientManager()
- manager.launch()
\ No newline at end of file
+ manager.launch()
diff --git a/src/obfsproxy/manager/manager.py b/src/obfsproxy/manager/manager.py
index b5cffbe..9f5e26f 100644
--- a/src/obfsproxy/manager/manager.py
+++ b/src/obfsproxy/manager/manager.py
@@ -13,11 +13,13 @@ class Manager:
os.environ['TOR_PT_MANAGED_TRANSPORT_VER'] = '1'
def launch(self):
- p = subprocess.Popen(['python', '-u', 'src/cli.py', '--managed'],
- stdout=subprocess.PIPE)
+ p = subprocess.Popen(['python', '-u', 'src/cli.py', '--managed'
+ ], stdout=subprocess.PIPE)
line = p.stdout.readline().strip()
while line != None and line != '':
print str(line)
sys.stdout.flush()
line = p.stdout.readline().strip()
- print 'Done!'
\ No newline at end of file
+ print 'Done!'
+
+
diff --git a/src/obfsproxy/manager/serverManager.py b/src/obfsproxy/manager/serverManager.py
index 465208b..1c56dc7 100644
--- a/src/obfsproxy/manager/serverManager.py
+++ b/src/obfsproxy/manager/serverManager.py
@@ -5,6 +5,7 @@ import os
from obfsproxy.manager.manager import Manager
+
class ServerManager(Manager):
def __init__(self):
@@ -18,4 +19,4 @@ class ServerManager(Manager):
if __name__ == '__main__':
manager = ServerManager()
- manager.launch()
\ No newline at end of file
+ manager.launch()
--
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