Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ccd047ea
Commit
ccd047ea
authored
Apr 25, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused imports.
parent
a6f26c1d
Changes
26
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
11 additions
and
31 deletions
+11
-31
Lib/distutils/command/config.py
Lib/distutils/command/config.py
+1
-1
Lib/distutils/command/register.py
Lib/distutils/command/register.py
+1
-1
Lib/distutils/command/sdist.py
Lib/distutils/command/sdist.py
+0
-1
Lib/distutils/extension.py
Lib/distutils/extension.py
+0
-1
Lib/distutils/text_file.py
Lib/distutils/text_file.py
+1
-1
Lib/ftplib.py
Lib/ftplib.py
+0
-2
Lib/idlelib/help.py
Lib/idlelib/help.py
+2
-2
Lib/idlelib/macosxSupport.py
Lib/idlelib/macosxSupport.py
+0
-1
Lib/lib2to3/fixer_util.py
Lib/lib2to3/fixer_util.py
+0
-2
Lib/lib2to3/fixes/fix_dict.py
Lib/lib2to3/fixes/fix_dict.py
+1
-2
Lib/lib2to3/fixes/fix_exec.py
Lib/lib2to3/fixes/fix_exec.py
+0
-1
Lib/lib2to3/fixes/fix_filter.py
Lib/lib2to3/fixes/fix_filter.py
+0
-1
Lib/lib2to3/fixes/fix_has_key.py
Lib/lib2to3/fixes/fix_has_key.py
+0
-1
Lib/lib2to3/fixes/fix_metaclass.py
Lib/lib2to3/fixes/fix_metaclass.py
+1
-1
Lib/lib2to3/fixes/fix_nonzero.py
Lib/lib2to3/fixes/fix_nonzero.py
+1
-1
Lib/lib2to3/fixes/fix_print.py
Lib/lib2to3/fixes/fix_print.py
+1
-1
Lib/lib2to3/fixes/fix_types.py
Lib/lib2to3/fixes/fix_types.py
+0
-1
Lib/lib2to3/fixes/fix_urllib.py
Lib/lib2to3/fixes/fix_urllib.py
+0
-1
Lib/lib2to3/refactor.py
Lib/lib2to3/refactor.py
+0
-1
Lib/pyclbr.py
Lib/pyclbr.py
+1
-2
Lib/re.py
Lib/re.py
+0
-1
Lib/turtledemo/__main__.py
Lib/turtledemo/__main__.py
+0
-1
Lib/turtledemo/bytedesign.py
Lib/turtledemo/bytedesign.py
+0
-1
Lib/turtledemo/planet_and_moon.py
Lib/turtledemo/planet_and_moon.py
+0
-1
Lib/uuid.py
Lib/uuid.py
+0
-1
Tools/scripts/diff.py
Tools/scripts/diff.py
+1
-1
No files found.
Lib/distutils/command/config.py
View file @
ccd047ea
...
...
@@ -9,7 +9,7 @@ configure-like tasks: "try to compile this C code", or "figure out where
this header file lives".
"""
import
sys
,
os
,
re
import
os
,
re
from
distutils.core
import
Command
from
distutils.errors
import
DistutilsExecError
...
...
Lib/distutils/command/register.py
View file @
ccd047ea
...
...
@@ -5,7 +5,7 @@ Implements the Distutils 'register' command (register with the repository).
# created 2002/10/21, Richard Jones
import
os
,
string
,
getpass
import
getpass
import
io
import
urllib.parse
,
urllib
.
request
from
warnings
import
warn
...
...
Lib/distutils/command/sdist.py
View file @
ccd047ea
...
...
@@ -3,7 +3,6 @@
Implements the Distutils 'sdist' command (create a source distribution)."""
import
os
import
string
import
sys
from
types
import
*
from
glob
import
glob
...
...
Lib/distutils/extension.py
View file @
ccd047ea
...
...
@@ -4,7 +4,6 @@ Provides the Extension class, used to describe C/C++ extension
modules in setup scripts."""
import
os
import
sys
import
warnings
# This class is really only used by the "build_ext" command, so it might
...
...
Lib/distutils/text_file.py
View file @
ccd047ea
...
...
@@ -4,7 +4,7 @@ provides the TextFile class, which gives an interface to text files
that (optionally) takes care of stripping comments, ignoring blank
lines, and joining lines with backslashes."""
import
sys
,
os
,
io
import
sys
,
io
class
TextFile
:
...
...
Lib/ftplib.py
View file @
ccd047ea
...
...
@@ -36,10 +36,8 @@ python ftplib.py -d localhost -l -p -l
# Modified by Giampaolo Rodola' to add TLS support.
#
import
os
import
sys
import
socket
import
warnings
from
socket
import
_GLOBAL_DEFAULT_TIMEOUT
__all__
=
[
"FTP"
,
"error_reply"
,
"error_temp"
,
"error_perm"
,
"error_proto"
,
...
...
Lib/idlelib/help.py
View file @
ccd047ea
...
...
@@ -25,8 +25,8 @@ copy_strip - Copy idle.html to help.html, rstripping each line.
show_idlehelp - Create HelpWindow. Called in EditorWindow.help_dialog.
"""
from
html.parser
import
HTMLParser
from
os.path
import
abspath
,
dirname
,
is
dir
,
is
file
,
join
from
tkinter
import
T
k
,
T
oplevel
,
Frame
,
Text
,
Scrollbar
,
Menu
,
Menubutton
from
os.path
import
abspath
,
dirname
,
isfile
,
join
from
tkinter
import
Toplevel
,
Frame
,
Text
,
Scrollbar
,
Menu
,
Menubutton
from
tkinter
import
font
as
tkfont
from
idlelib.configHandler
import
idleConf
...
...
Lib/idlelib/macosxSupport.py
View file @
ccd047ea
...
...
@@ -3,7 +3,6 @@ A number of functions that enhance IDLE on Mac OSX.
"""
import
sys
import
tkinter
from
os
import
path
import
warnings
def
runningAsOSXApp
():
...
...
Lib/lib2to3/fixer_util.py
View file @
ccd047ea
"""Utility functions, node construction macros, etc."""
# Author: Collin Winter
from
itertools
import
islice
# Local imports
from
.pgen2
import
token
from
.pytree
import
Leaf
,
Node
...
...
Lib/lib2to3/fixes/fix_dict.py
View file @
ccd047ea
...
...
@@ -30,9 +30,8 @@ as an argument to a function that introspects the argument).
# Local imports
from
..
import
pytree
from
..
import
patcomp
from
..pgen2
import
token
from
..
import
fixer_base
from
..fixer_util
import
Name
,
Call
,
LParen
,
RParen
,
ArgList
,
Dot
from
..fixer_util
import
Name
,
Call
,
Dot
from
..
import
fixer_util
...
...
Lib/lib2to3/fixes/fix_exec.py
View file @
ccd047ea
...
...
@@ -10,7 +10,6 @@ exec code in ns1, ns2 -> exec(code, ns1, ns2)
"""
# Local imports
from
..
import
pytree
from
..
import
fixer_base
from
..fixer_util
import
Comma
,
Name
,
Call
...
...
Lib/lib2to3/fixes/fix_filter.py
View file @
ccd047ea
...
...
@@ -14,7 +14,6 @@ Python 2.6 figure it out.
"""
# Local imports
from
..pgen2
import
token
from
..
import
fixer_base
from
..fixer_util
import
Name
,
Call
,
ListComp
,
in_special_context
...
...
Lib/lib2to3/fixes/fix_has_key.py
View file @
ccd047ea
...
...
@@ -31,7 +31,6 @@ CAVEATS:
# Local imports
from
..
import
pytree
from
..pgen2
import
token
from
..
import
fixer_base
from
..fixer_util
import
Name
,
parenthesize
...
...
Lib/lib2to3/fixes/fix_metaclass.py
View file @
ccd047ea
...
...
@@ -20,7 +20,7 @@
# Local imports
from
..
import
fixer_base
from
..pygram
import
token
from
..fixer_util
import
Name
,
syms
,
Node
,
Leaf
from
..fixer_util
import
syms
,
Node
,
Leaf
def
has_metaclass
(
parent
):
...
...
Lib/lib2to3/fixes/fix_nonzero.py
View file @
ccd047ea
...
...
@@ -3,7 +3,7 @@
# Local imports
from
..
import
fixer_base
from
..fixer_util
import
Name
,
syms
from
..fixer_util
import
Name
class
FixNonzero
(
fixer_base
.
BaseFix
):
BM_compatible
=
True
...
...
Lib/lib2to3/fixes/fix_print.py
View file @
ccd047ea
...
...
@@ -18,7 +18,7 @@ from .. import patcomp
from
..
import
pytree
from
..pgen2
import
token
from
..
import
fixer_base
from
..fixer_util
import
Name
,
Call
,
Comma
,
String
,
is_tuple
from
..fixer_util
import
Name
,
Call
,
Comma
,
String
parend_expr
=
patcomp
.
compile_pattern
(
...
...
Lib/lib2to3/fixes/fix_types.py
View file @
ccd047ea
...
...
@@ -20,7 +20,6 @@ There should be another fixer that handles at least the following constants:
"""
# Local imports
from
..pgen2
import
token
from
..
import
fixer_base
from
..fixer_util
import
Name
...
...
Lib/lib2to3/fixes/fix_urllib.py
View file @
ccd047ea
...
...
@@ -6,7 +6,6 @@
# Local imports
from
lib2to3.fixes.fix_imports
import
alternates
,
FixImports
from
lib2to3
import
fixer_base
from
lib2to3.fixer_util
import
(
Name
,
Comma
,
FromImport
,
Newline
,
find_indentation
,
Node
,
syms
)
...
...
Lib/lib2to3/refactor.py
View file @
ccd047ea
...
...
@@ -26,7 +26,6 @@ from itertools import chain
from
.pgen2
import
driver
,
tokenize
,
token
from
.fixer_util
import
find_root
from
.
import
pytree
,
pygram
from
.
import
btm_utils
as
bu
from
.
import
btm_matcher
as
bm
...
...
Lib/pyclbr.py
View file @
ccd047ea
...
...
@@ -40,12 +40,10 @@ Instances of this class have the following instance variables:
"""
import
io
import
os
import
sys
import
importlib.util
import
tokenize
from
token
import
NAME
,
DEDENT
,
OP
from
operator
import
itemgetter
__all__
=
[
"readmodule"
,
"readmodule_ex"
,
"Class"
,
"Function"
]
...
...
@@ -328,6 +326,7 @@ def _getname(g):
def
_main
():
# Main program for testing.
import
os
from
operator
import
itemgetter
mod
=
sys
.
argv
[
1
]
if
os
.
path
.
exists
(
mod
):
path
=
[
os
.
path
.
dirname
(
mod
)]
...
...
Lib/re.py
View file @
ccd047ea
...
...
@@ -119,7 +119,6 @@ This module also defines an exception 'error'.
"""
import
sys
import
sre_compile
import
sre_parse
try
:
...
...
Lib/turtledemo/__main__.py
View file @
ccd047ea
...
...
@@ -95,7 +95,6 @@ from idlelib.textView import view_text
from
turtledemo
import
__doc__
as
about_turtledemo
import
turtle
import
time
demo_dir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
darwin
=
sys
.
platform
==
'darwin'
...
...
Lib/turtledemo/bytedesign.py
View file @
ccd047ea
...
...
@@ -22,7 +22,6 @@ to 0, this animation runs in "line per line"
mode as fast as possible.
"""
import
math
from
turtle
import
Turtle
,
mainloop
from
time
import
clock
...
...
Lib/turtledemo/planet_and_moon.py
View file @
ccd047ea
...
...
@@ -18,7 +18,6 @@ mouse over the scrollbar of the canvas.
"""
from
turtle
import
Shape
,
Turtle
,
mainloop
,
Vec2D
as
Vec
from
time
import
sleep
G
=
8
...
...
Lib/uuid.py
View file @
ccd047ea
...
...
@@ -487,7 +487,6 @@ try:
# Assume that the uuid_generate functions are broken from 10.5 onward,
# the test can be adjusted when a later version is fixed.
if
sys
.
platform
==
'darwin'
:
import
os
if
int
(
os
.
uname
().
release
.
split
(
'.'
)[
0
])
>=
9
:
_uuid_generate_time
=
None
...
...
Tools/scripts/diff.py
View file @
ccd047ea
...
...
@@ -8,7 +8,7 @@
"""
import
sys
,
os
,
time
,
difflib
,
argparse
import
sys
,
os
,
difflib
,
argparse
from
datetime
import
datetime
,
timezone
def
file_mtime
(
path
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment