diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 18:05:09 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 18:05:09 +0200 |
commit | bfc889d29afdd902b5df30336ff73e484a3592fc (patch) | |
tree | 9f0d1cc12258be9ba8998fae688a6de2a8b87b99 /libpathod/pathoc.py | |
parent | ce0e2b12b4ca26143af3bbaa7c0ff7aa6f011d39 (diff) | |
download | mitmproxy-bfc889d29afdd902b5df30336ff73e484a3592fc.tar.gz mitmproxy-bfc889d29afdd902b5df30336ff73e484a3592fc.tar.bz2 mitmproxy-bfc889d29afdd902b5df30336ff73e484a3592fc.zip |
fix prospector code smells
Diffstat (limited to 'libpathod/pathoc.py')
-rw-r--r-- | libpathod/pathoc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py index b2a8ec22..6b040214 100644 --- a/libpathod/pathoc.py +++ b/libpathod/pathoc.py @@ -123,7 +123,7 @@ class WebsocketFrameReader(threading.Thread): while True: if self.ws_read_limit == 0: return - r, _, x = select.select([self.rfile], [], [], 0.05) + r, _, _ = select.select([self.rfile], [], [], 0.05) delta = time.time() - starttime if not r and self.timeout and delta > self.timeout: return @@ -501,11 +501,11 @@ def main(args): # pragma: nocover if ret and args.oneshot: return # We consume the queue when we can, so it doesn't build up. - for i in p.wait(timeout=0, finish=False): + for i_ in p.wait(timeout=0, finish=False): pass except (http.HttpError, tcp.NetLibError) as v: break - for i in p.wait(timeout=0.01, finish=True): + for i_ in p.wait(timeout=0.01, finish=True): pass except KeyboardInterrupt: pass |