From 02d893cfae830d4ef997095dc6e2786f8b63d2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 2 Aug 2001 07:15:29 +0000 Subject: Patch #444359: Remove unused imports. --- Lib/ConfigParser.py | 1 - Lib/Cookie.py | 2 +- Lib/codecs.py | 2 +- Lib/multifile.py | 2 -- Lib/pipes.py | 1 - Lib/pyclbr.py | 1 - Lib/sgmllib.py | 1 - Lib/urllib2.py | 1 - 8 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 5eae972..699803d 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -85,7 +85,6 @@ ConfigParser -- responsible for for parsing a list of write the configuration state in .ini format """ -import sys import string import re diff --git a/Lib/Cookie.py b/Lib/Cookie.py index 3fc2ffc..8e59657 100644 --- a/Lib/Cookie.py +++ b/Lib/Cookie.py @@ -215,7 +215,7 @@ Finis. # # Import our required modules # -import string, sys +import string from UserDict import UserDict try: diff --git a/Lib/codecs.py b/Lib/codecs.py index ebcec1c..711d67a 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -7,7 +7,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com). """#" -import struct, types, __builtin__ +import struct, __builtin__ ### Registry and builtin stateless codec functions diff --git a/Lib/multifile.py b/Lib/multifile.py index c3c468a..74c35f0 100644 --- a/Lib/multifile.py +++ b/Lib/multifile.py @@ -27,8 +27,6 @@ current file part. This may be useful when using MultiFile with a non- seekable stream object. """ -import sys - __all__ = ["MultiFile","Error"] class Error(Exception): diff --git a/Lib/pipes.py b/Lib/pipes.py index 1e16435..b565654 100644 --- a/Lib/pipes.py +++ b/Lib/pipes.py @@ -59,7 +59,6 @@ For an example, see the function test() at the end of the file. """ # ' -import sys import re import os diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py index c9bb2fe..ea42c30 100644 --- a/Lib/pyclbr.py +++ b/Lib/pyclbr.py @@ -53,7 +53,6 @@ PACKAGE RELATED BUGS exists coded in Python in the freeze package.) """ -import os import sys import imp import re diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index f228e5b2..f2a3020 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -10,7 +10,6 @@ import re -import string __all__ = ["SGMLParser"] diff --git a/Lib/urllib2.py b/Lib/urllib2.py index ee0bc27..5738779 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -88,7 +88,6 @@ f = urllib2.urlopen('http://www.python.org/') # check digest against correct (i.e. non-apache) implementation import socket -import UserDict import httplib import re import base64 -- cgit v0.12