[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Some changes for uniformity.
commit de8b2d0c1f38a11f9989e7d8a783acb045a7f5d6
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Sun Feb 3 01:54:48 2013 -0800
Some changes for uniformity.
---
flashproxy-reg-url | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/flashproxy-reg-url b/flashproxy-reg-url
index 2d525c7..20156cd 100755
--- a/flashproxy-reg-url
+++ b/flashproxy-reg-url
@@ -14,7 +14,7 @@ DEFAULT_FACILITATOR_URL = "https://tor-facilitator.bamsoftware.com/"
class options(object):
facilitator_url = None
-def usage(f=sys.stdout):
+def usage(f = sys.stdout):
print >> f, """\
Usage: %(progname)s REMOTE[:PORT]
Print a URL, which, when retrieved, will cause the client address
@@ -80,8 +80,7 @@ def format_addr(addr):
return u":%d" % port
# Numeric IPv6 address?
try:
- addrs = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM,
-socket.IPPROTO_TCP, socket.AI_NUMERICHOST)
+ addrs = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM, socket.IPPROTO_TCP, socket.AI_NUMERICHOST)
af = addrs[0][0]
except socket.gaierror, e:
af = 0
@@ -101,7 +100,7 @@ for o, a in opt:
options.facilitator_url = a
elif o == "-h" or o == "--help":
usage()
- sys.exit(0)
+ sys.exit()
if len(args) != 1:
usage(f=sys.stderr)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits