summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAllan Lewis <allanlewis@users.noreply.github.com>2016-04-27 12:11:07 +0100
committerAllan Lewis <allanlewis@users.noreply.github.com>2016-04-27 13:56:11 +0100
commit953d46928030705057f16c7e1a3420cd666e9b34 (patch)
tree48792eff094ed4cdfb70cd208ec32fd4c18fb688 /bin
parent9ebe59b5d7768b250ec517908cbc6cdabfe85707 (diff)
downloadwebsocket-client-953d46928030705057f16c7e1a3420cd666e9b34.tar.gz
wsdump, examples, setup, _abnf, _http, _utils: [PEP 8] Fix spacing
Diffstat (limited to 'bin')
-rwxr-xr-xbin/wsdump.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/wsdump.py b/bin/wsdump.py
index 88a6638..d85e4fc 100755
--- a/bin/wsdump.py
+++ b/bin/wsdump.py
@@ -33,9 +33,10 @@ class VAction(argparse.Action):
try:
values = int(values)
except ValueError:
- values = values.count("v")+1
+ values = values.count("v") + 1
setattr(args, self.dest, values)
+
def parse_args():
parser = argparse.ArgumentParser(description="WebSocket Simple Dump Tool")
parser.add_argument("url", metavar="ws_url",
@@ -113,7 +114,7 @@ def main():
options["subprotocols"] = args.subprotocols
opts = {}
if args.nocert:
- opts = { "cert_reqs": websocket.ssl.CERT_NONE, "check_hostname": False }
+ opts = {"cert_reqs": websocket.ssl.CERT_NONE, "check_hostname": False}
ws = websocket.create_connection(args.url, sslopt=opts, **options)
if args.raw:
console = NonInteractive()