[tor-commits] [flashproxy/master] Some changes for uniformity.
dcf at torproject.org
dcf at torproject.org
Wed Mar 13 09:01:24 UTC 2013
commit de8b2d0c1f38a11f9989e7d8a783acb045a7f5d6
Author: David Fifield <david at bamsoftware.com>
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)
More information about the tor-commits
mailing list