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 /test/netlib/http | |
parent | fa7964988f1541587a9fc3b582223e0a7b11a4d1 (diff) | |
download | mitmproxy-caee1adeb613368dc658bfc0c99e445d6f41cd7c.tar.gz mitmproxy-caee1adeb613368dc658bfc0c99e445d6f41cd7c.tar.bz2 mitmproxy-caee1adeb613368dc658bfc0c99e445d6f41cd7c.zip |
cleanup imports with flake8
Diffstat (limited to 'test/netlib/http')
-rw-r--r-- | test/netlib/http/http1/test_read.py | 1 | ||||
-rw-r--r-- | test/netlib/http/http2/test_connections.py | 1 | ||||
-rw-r--r-- | test/netlib/http/test_message.py | 4 | ||||
-rw-r--r-- | test/netlib/http/test_response.py | 2 |
4 files changed, 2 insertions, 6 deletions
diff --git a/test/netlib/http/http1/test_read.py b/test/netlib/http/http1/test_read.py index d8106904..33f3802b 100644 --- a/test/netlib/http/http1/test_read.py +++ b/test/netlib/http/http1/test_read.py @@ -1,6 +1,5 @@ from __future__ import absolute_import, print_function, division from io import BytesIO -import textwrap from mock import Mock from netlib.exceptions import HttpException, HttpSyntaxException, HttpReadDisconnect, TcpDisconnect from netlib.http import Headers diff --git a/test/netlib/http/http2/test_connections.py b/test/netlib/http/http2/test_connections.py index 7d240c0e..9312576f 100644 --- a/test/netlib/http/http2/test_connections.py +++ b/test/netlib/http/http2/test_connections.py @@ -1,4 +1,3 @@ -import OpenSSL import mock import codecs diff --git a/test/netlib/http/test_message.py b/test/netlib/http/test_message.py index 64592921..f5bf7f0c 100644 --- a/test/netlib/http/test_message.py +++ b/test/netlib/http/test_message.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division -from netlib.http import decoded, Headers -from netlib.tutils import tresp, raises +from netlib.http import decoded +from netlib.tutils import tresp def _test_passthrough_attr(message, attr): diff --git a/test/netlib/http/test_response.py b/test/netlib/http/test_response.py index cfd093d4..63c976a2 100644 --- a/test/netlib/http/test_response.py +++ b/test/netlib/http/test_response.py @@ -2,12 +2,10 @@ from __future__ import absolute_import, print_function, division import email -import six import time from netlib.http import Headers from netlib.http.cookies import CookieAttrs -from netlib.odict import ODict, ODictCaseless from netlib.tutils import raises, tresp from .test_message import _test_passthrough_attr, _test_decoded_attr |