diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-28 14:36:43 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-28 14:43:32 +0200 |
commit | caee1adeb613368dc658bfc0c99e445d6f41cd7c (patch) | |
tree | 5f7ea696349c91266ebec586bd4a273982e92eca /pathod | |
parent | fa7964988f1541587a9fc3b582223e0a7b11a4d1 (diff) | |
download | mitmproxy-caee1adeb613368dc658bfc0c99e445d6f41cd7c.tar.gz mitmproxy-caee1adeb613368dc658bfc0c99e445d6f41cd7c.tar.bz2 mitmproxy-caee1adeb613368dc658bfc0c99e445d6f41cd7c.zip |
cleanup imports with flake8
Diffstat (limited to 'pathod')
-rw-r--r-- | pathod/language/websockets.py | 1 | ||||
-rw-r--r-- | pathod/language/writer.py | 1 | ||||
-rw-r--r-- | pathod/protocols/http.py | 6 | ||||
-rw-r--r-- | pathod/protocols/http2.py | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/pathod/language/websockets.py b/pathod/language/websockets.py index 09443a95..9b752b7e 100644 --- a/pathod/language/websockets.py +++ b/pathod/language/websockets.py @@ -1,4 +1,3 @@ -import os import random import string import netlib.websockets diff --git a/pathod/language/writer.py b/pathod/language/writer.py index 1a27e1ef..22e32ce2 100644 --- a/pathod/language/writer.py +++ b/pathod/language/writer.py @@ -1,6 +1,5 @@ import time from netlib.exceptions import TcpDisconnect -import netlib.tcp BLOCKSIZE = 1024 # It's not clear what the upper limit for time.sleep is. It's lower than the diff --git a/pathod/protocols/http.py b/pathod/protocols/http.py index 1f1765cb..d09b5bf2 100644 --- a/pathod/protocols/http.py +++ b/pathod/protocols/http.py @@ -1,6 +1,6 @@ -from netlib import tcp, wsgi -from netlib.exceptions import HttpReadDisconnect, TlsException -from netlib.http import http1, Request +from netlib import wsgi +from netlib.exceptions import TlsException +from netlib.http import http1 from .. import version, language diff --git a/pathod/protocols/http2.py b/pathod/protocols/http2.py index a098a14e..688cc64e 100644 --- a/pathod/protocols/http2.py +++ b/pathod/protocols/http2.py @@ -1,5 +1,5 @@ from netlib.http import http2 -from .. import version, app, language, utils, log +from .. import language class HTTP2Protocol: |