Skip to content

Commit ccd047e

Browse files
Removed unused imports.
1 parent a6f26c1 commit ccd047e

26 files changed

+11
-31
lines changed

Lib/distutils/command/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
this header file lives".
1010
"""
1111

12-
import sys, os, re
12+
import os, re
1313

1414
from distutils.core import Command
1515
from distutils.errors import DistutilsExecError

Lib/distutils/command/register.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# created 2002/10/21, Richard Jones
77

8-
import os, string, getpass
8+
import getpass
99
import io
1010
import urllib.parse, urllib.request
1111
from warnings import warn

Lib/distutils/command/sdist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Implements the Distutils 'sdist' command (create a source distribution)."""
44

55
import os
6-
import string
76
import sys
87
from types import *
98
from glob import glob

Lib/distutils/extension.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
modules in setup scripts."""
55

66
import os
7-
import sys
87
import warnings
98

109
# This class is really only used by the "build_ext" command, so it might

Lib/distutils/text_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
that (optionally) takes care of stripping comments, ignoring blank
55
lines, and joining lines with backslashes."""
66

7-
import sys, os, io
7+
import sys, io
88

99

1010
class TextFile:

Lib/ftplib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@
3636
# Modified by Giampaolo Rodola' to add TLS support.
3737
#
3838

39-
import os
4039
import sys
4140
import socket
42-
import warnings
4341
from socket import _GLOBAL_DEFAULT_TIMEOUT
4442

4543
__all__ = ["FTP", "error_reply", "error_temp", "error_perm", "error_proto",

Lib/idlelib/help.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
show_idlehelp - Create HelpWindow. Called in EditorWindow.help_dialog.
2626
"""
2727
from html.parser import HTMLParser
28-
from os.path import abspath, dirname, isdir, isfile, join
29-
from tkinter import Tk, Toplevel, Frame, Text, Scrollbar, Menu, Menubutton
28+
from os.path import abspath, dirname, isfile, join
29+
from tkinter import Toplevel, Frame, Text, Scrollbar, Menu, Menubutton
3030
from tkinter import font as tkfont
3131
from idlelib.configHandler import idleConf
3232

Lib/idlelib/macosxSupport.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44
import sys
55
import tkinter
6-
from os import path
76
import warnings
87

98
def runningAsOSXApp():

Lib/lib2to3/fixer_util.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"""Utility functions, node construction macros, etc."""
22
# Author: Collin Winter
33

4-
from itertools import islice
5-
64
# Local imports
75
from .pgen2 import token
86
from .pytree import Leaf, Node

Lib/lib2to3/fixes/fix_dict.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
# Local imports
3131
from .. import pytree
3232
from .. import patcomp
33-
from ..pgen2 import token
3433
from .. import fixer_base
35-
from ..fixer_util import Name, Call, LParen, RParen, ArgList, Dot
34+
from ..fixer_util import Name, Call, Dot
3635
from .. import fixer_util
3736

3837

0 commit comments

Comments
 (0)