Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02d893c

Browse files
committed
Patch #444359: Remove unused imports.
1 parent d429ab6 commit 02d893c

8 files changed

Lines changed: 2 additions & 9 deletions

File tree

Lib/ConfigParser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
write the configuration state in .ini format
8686
"""
8787

88-
import sys
8988
import string
9089
import re
9190

Lib/Cookie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
#
216216
# Import our required modules
217217
#
218-
import string, sys
218+
import string
219219
from UserDict import UserDict
220220

221221
try:

Lib/codecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
"""#"
99

10-
import struct, types, __builtin__
10+
import struct, __builtin__
1111

1212
### Registry and builtin stateless codec functions
1313

Lib/multifile.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
seekable stream object.
2828
"""
2929

30-
import sys
31-
3230
__all__ = ["MultiFile","Error"]
3331

3432
class Error(Exception):

Lib/pipes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
""" # '
6060

6161

62-
import sys
6362
import re
6463

6564
import os

Lib/pyclbr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class MyClass(subpackage.SuperClass):
5353
exists coded in Python in the freeze package.)
5454
"""
5555

56-
import os
5756
import sys
5857
import imp
5958
import re

Lib/sgmllib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
import re
13-
import string
1413

1514
__all__ = ["SGMLParser"]
1615

Lib/urllib2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
# check digest against correct (i.e. non-apache) implementation
8989

9090
import socket
91-
import UserDict
9291
import httplib
9392
import re
9493
import base64

0 commit comments

Comments
 (0)