From da496669c2a52e06a955a067f71a70711ddb87d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Sun, 15 Jul 2012 22:42:45 +0200 Subject: [PATCH] removed unused imports --- test/test_console_help.py | 2 -- test/test_flow.py | 2 -- test/test_proxy.py | 5 +---- test/test_script.py | 1 - test/test_server.py | 5 +---- test/test_utils.py | 3 +-- test/tutils.py | 3 +-- 7 files changed, 4 insertions(+), 17 deletions(-) diff --git a/test/test_console_help.py b/test/test_console_help.py index c9ef72282..98e202adb 100644 --- a/test/test_console_help.py +++ b/test/test_console_help.py @@ -1,6 +1,4 @@ -import sys import libmproxy.console.help as help -from libmproxy import utils, flow, encoding class DummyMaster: def make_view(self): diff --git a/test/test_flow.py b/test/test_flow.py index 99df9ed0e..03ed9a9a0 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -2,9 +2,7 @@ import Queue, time, os.path from cStringIO import StringIO import email.utils from libmproxy import filt, flow, controller, utils, tnetstring -from netlib import certutils import tutils -import libpry class TestStickyCookieState: diff --git a/test/test_proxy.py b/test/test_proxy.py index 105871689..e137c6879 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -1,7 +1,4 @@ -import cStringIO, textwrap -from cStringIO import StringIO -import libpry -from libmproxy import proxy, flow +from libmproxy import proxy import tutils diff --git a/test/test_script.py b/test/test_script.py index 88f32ddf2..407c9b4b2 100644 --- a/test/test_script.py +++ b/test/test_script.py @@ -1,4 +1,3 @@ -import os from libmproxy import script, flow import tutils diff --git a/test/test_server.py b/test/test_server.py index 86dc0a4af..a4257fada 100644 --- a/test/test_server.py +++ b/test/test_server.py @@ -1,7 +1,4 @@ -import urllib, urllib2, unittest -import time -import libpathod.test, requests -from netlib import tcp, http +from netlib import tcp import tutils """ diff --git a/test/test_utils.py b/test/test_utils.py index e23d919fd..49312a4b5 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1,6 +1,5 @@ -import textwrap, re, json +import json from libmproxy import utils -from nose.tools import assert_raises import tutils utils.CERT_SLEEP_TIME = 0 diff --git a/test/tutils.py b/test/tutils.py index a35dc4d4b..cfe9bffd1 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -1,11 +1,10 @@ -import threading, Queue, time +import threading, Queue import os, shutil, tempfile from contextlib import contextmanager from libmproxy import proxy, flow, controller, utils from netlib import certutils import human_curl as hurl import libpathod.test -import random def treq(conn=None): if not conn: