From 9abff4f0ac25613638feff9f2b36b8397bae3a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Thu, 18 Aug 2011 23:22:25 +0200 Subject: [PATCH] Removed unused imports --- libmproxy/controller.py | 1 - libmproxy/dump.py | 2 +- libmproxy/proxy.py | 2 +- mitmdump | 6 +++--- mitmproxy | 4 ++-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/libmproxy/controller.py b/libmproxy/controller.py index 524b25135..756e51e61 100644 --- a/libmproxy/controller.py +++ b/libmproxy/controller.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import sys import Queue, threading should_exit = False diff --git a/libmproxy/dump.py b/libmproxy/dump.py index d1bdfb3fc..2ad88cfcc 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -1,5 +1,5 @@ import sys, os -import flow, filt, utils, script +import flow, filt, utils class DumpError(Exception): pass diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index 54becb393..5a2a4f438 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -5,7 +5,7 @@ Development started from Neil Schemenauer's munchy.py """ -import sys, os, string, socket, select, time +import sys, os, string, socket, time import shutil, tempfile, threading import optparse, SocketServer, ssl import utils, flow diff --git a/mitmdump b/mitmdump index bb4ec5017..1a7103923 100755 --- a/mitmdump +++ b/mitmdump @@ -15,10 +15,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import sys, os.path -from libmproxy import proxy, dump, utils, cmdline +import sys +from libmproxy import proxy, dump, cmdline from libmproxy.version import VERSION -from optparse import OptionParser, OptionGroup +from optparse import OptionParser if __name__ == '__main__': diff --git a/mitmproxy b/mitmproxy index 942646b22..d53d73013 100755 --- a/mitmproxy +++ b/mitmproxy @@ -15,8 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import sys, os.path -from libmproxy import proxy, controller, console, utils, flow, cmdline +import sys +from libmproxy import proxy, console, cmdline from libmproxy.version import VERSION from optparse import OptionParser, OptionGroup