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
1e8ee9b3
Commit
1e8ee9b3
authored
Apr 24, 2016
by
Berker Peksag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23277: Remove unused sys and os imports
Patch by Jon Dufresne.
parent
37917369
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
6 additions
and
48 deletions
+6
-48
Lib/ctypes/test/test_objects.py
Lib/ctypes/test/test_objects.py
+1
-1
Lib/ctypes/test/test_parameters.py
Lib/ctypes/test/test_parameters.py
+1
-1
Lib/ctypes/test/test_returnfuncptrs.py
Lib/ctypes/test/test_returnfuncptrs.py
+0
-1
Lib/ctypes/test/test_sizes.py
Lib/ctypes/test/test_sizes.py
+0
-1
Lib/test/audiotests.py
Lib/test/audiotests.py
+1
-1
Lib/test/make_ssl_certs.py
Lib/test/make_ssl_certs.py
+0
-1
Lib/test/test_aifc.py
Lib/test/test_aifc.py
+0
-1
Lib/test/test_binhex.py
Lib/test/test_binhex.py
+0
-1
Lib/test/test_csv.py
Lib/test/test_csv.py
+0
-1
Lib/test/test_dbm.py
Lib/test/test_dbm.py
+0
-1
Lib/test/test_dbm_ndbm.py
Lib/test/test_dbm_ndbm.py
+0
-1
Lib/test/test_devpoll.py
Lib/test/test_devpoll.py
+0
-1
Lib/test/test_eintr.py
Lib/test/test_eintr.py
+0
-1
Lib/test/test_email/__init__.py
Lib/test/test_email/__init__.py
+0
-1
Lib/test/test_heapq.py
Lib/test/test_heapq.py
+0
-1
Lib/test/test_importlib/extension/test_case_sensitivity.py
Lib/test/test_importlib/extension/test_case_sensitivity.py
+0
-1
Lib/test/test_importlib/extension/test_path_hook.py
Lib/test/test_importlib/extension/test_path_hook.py
+0
-1
Lib/test/test_importlib/frozen/test_loader.py
Lib/test/test_importlib/frozen/test_loader.py
+0
-2
Lib/test/test_importlib/import_/test_relative_imports.py
Lib/test/test_importlib/import_/test_relative_imports.py
+0
-1
Lib/test/test_importlib/source/test_case_sensitivity.py
Lib/test/test_importlib/source/test_case_sensitivity.py
+0
-1
Lib/test/test_json/__init__.py
Lib/test/test_json/__init__.py
+0
-1
Lib/test/test_kqueue.py
Lib/test/test_kqueue.py
+0
-1
Lib/test/test_msilib.py
Lib/test/test_msilib.py
+0
-1
Lib/test/test_multibytecodec.py
Lib/test/test_multibytecodec.py
+1
-1
Lib/test/test_nis.py
Lib/test/test_nis.py
+0
-1
Lib/test/test_normalization.py
Lib/test/test_normalization.py
+0
-1
Lib/test/test_parser.py
Lib/test/test_parser.py
+0
-1
Lib/test/test_pep3151.py
Lib/test/test_pep3151.py
+0
-1
Lib/test/test_posixpath.py
Lib/test/test_posixpath.py
+0
-1
Lib/test/test_pulldom.py
Lib/test/test_pulldom.py
+0
-1
Lib/test/test_quopri.py
Lib/test/test_quopri.py
+1
-1
Lib/test/test_sort.py
Lib/test/test_sort.py
+0
-1
Lib/test/test_strptime.py
Lib/test/test_strptime.py
+0
-1
Lib/test/test_tools/test_md5sum.py
Lib/test/test_tools/test_md5sum.py
+0
-1
Lib/test/test_tools/test_pdeps.py
Lib/test/test_tools/test_pdeps.py
+0
-1
Lib/test/test_ttk_guionly.py
Lib/test/test_ttk_guionly.py
+0
-1
Lib/test/test_ttk_textonly.py
Lib/test/test_ttk_textonly.py
+0
-1
Lib/test/test_unpack_ex.py
Lib/test/test_unpack_ex.py
+0
-1
Lib/test/test_urllibnet.py
Lib/test/test_urllibnet.py
+0
-1
Lib/test/test_weakset.py
Lib/test/test_weakset.py
+0
-2
Lib/test/test_xml_etree_c.py
Lib/test/test_xml_etree_c.py
+1
-1
Lib/test/test_xmlrpc_net.py
Lib/test/test_xmlrpc_net.py
+0
-1
Lib/test/test_zipfile.py
Lib/test/test_zipfile.py
+0
-1
Lib/tkinter/test/runtktests.py
Lib/tkinter/test/runtktests.py
+0
-1
Lib/unittest/test/testmock/support.py
Lib/unittest/test/testmock/support.py
+0
-2
No files found.
Lib/ctypes/test/test_objects.py
View file @
1e8ee9b3
...
...
@@ -54,7 +54,7 @@ of 'x' ('_b_base_' is either None, or the root object owning the memory block):
'''
import
unittest
,
doctest
,
sys
import
unittest
,
doctest
import
ctypes.test.test_objects
...
...
Lib/ctypes/test/test_parameters.py
View file @
1e8ee9b3
import
unittest
,
sys
import
unittest
from
ctypes.test
import
need_symbol
class
SimpleTypesTestCase
(
unittest
.
TestCase
):
...
...
Lib/ctypes/test/test_returnfuncptrs.py
View file @
1e8ee9b3
import
unittest
from
ctypes
import
*
import
os
import
_ctypes_test
...
...
Lib/ctypes/test/test_sizes.py
View file @
1e8ee9b3
...
...
@@ -2,7 +2,6 @@
from
ctypes
import
*
import
sys
import
unittest
...
...
Lib/test/audiotests.py
View file @
1e8ee9b3
...
...
@@ -3,7 +3,7 @@ import unittest
import
array
import
io
import
pickle
import
sys
class
UnseekableIO
(
io
.
FileIO
):
def
tell
(
self
):
...
...
Lib/test/make_ssl_certs.py
View file @
1e8ee9b3
...
...
@@ -3,7 +3,6 @@ and friends."""
import
os
import
shutil
import
sys
import
tempfile
from
subprocess
import
*
...
...
Lib/test/test_aifc.py
View file @
1e8ee9b3
...
...
@@ -2,7 +2,6 @@ from test.support import findfile, TESTFN, unlink
import
unittest
from
test
import
audiotests
from
audioop
import
byteswap
import
os
import
io
import
sys
import
struct
...
...
Lib/test/test_binhex.py
View file @
1e8ee9b3
...
...
@@ -4,7 +4,6 @@
Based on an original test by Roger E. Masse.
"""
import
binhex
import
os
import
unittest
from
test
import
support
...
...
Lib/test/test_csv.py
View file @
1e8ee9b3
...
...
@@ -4,7 +4,6 @@
import
copy
import
io
import
sys
import
os
import
unittest
from
io
import
StringIO
from
tempfile
import
TemporaryFile
...
...
Lib/test/test_dbm.py
View file @
1e8ee9b3
"""Test script for the dbm.open function based on testdumbdbm.py"""
import
os
import
unittest
import
glob
import
test.support
...
...
Lib/test/test_dbm_ndbm.py
View file @
1e8ee9b3
from
test
import
support
support
.
import_module
(
"dbm.ndbm"
)
#skip if not supported
import
unittest
import
os
import
random
import
dbm.ndbm
from
dbm.ndbm
import
error
...
...
Lib/test/test_devpoll.py
View file @
1e8ee9b3
...
...
@@ -5,7 +5,6 @@
import
os
import
random
import
select
import
sys
import
unittest
from
test.support
import
TESTFN
,
run_unittest
,
cpython_only
...
...
Lib/test/test_eintr.py
View file @
1e8ee9b3
import
os
import
signal
import
subprocess
import
sys
import
unittest
from
test
import
support
...
...
Lib/test/test_email/__init__.py
View file @
1e8ee9b3
import
os
import
sys
import
unittest
import
collections
import
email
...
...
Lib/test/test_heapq.py
View file @
1e8ee9b3
"""Unittests for heapq."""
import
sys
import
random
import
unittest
...
...
Lib/test/test_importlib/extension/test_case_sensitivity.py
View file @
1e8ee9b3
from
importlib
import
_bootstrap_external
import
sys
from
test
import
support
import
unittest
...
...
Lib/test/test_importlib/extension/test_path_hook.py
View file @
1e8ee9b3
...
...
@@ -3,7 +3,6 @@ from .. import util
machinery
=
util
.
import_importlib
(
'importlib.machinery'
)
import
collections
import
sys
import
unittest
...
...
Lib/test/test_importlib/frozen/test_loader.py
View file @
1e8ee9b3
...
...
@@ -3,8 +3,6 @@ from .. import util
machinery
=
util
.
import_importlib
(
'importlib.machinery'
)
import
sys
from
test.support
import
captured_stdout
import
types
import
unittest
...
...
Lib/test/test_importlib/import_/test_relative_imports.py
View file @
1e8ee9b3
"""Test relative imports (PEP 328)."""
from
..
import
util
import
sys
import
unittest
import
warnings
...
...
Lib/test/test_importlib/source/test_case_sensitivity.py
View file @
1e8ee9b3
...
...
@@ -5,7 +5,6 @@ importlib = util.import_importlib('importlib')
machinery
=
util
.
import_importlib
(
'importlib.machinery'
)
import
os
import
sys
from
test
import
support
as
test_support
import
unittest
...
...
Lib/test/test_json/__init__.py
View file @
1e8ee9b3
import
os
import
sys
import
json
import
doctest
import
unittest
...
...
Lib/test/test_kqueue.py
View file @
1e8ee9b3
...
...
@@ -5,7 +5,6 @@ import errno
import
os
import
select
import
socket
import
sys
import
time
import
unittest
...
...
Lib/test/test_msilib.py
View file @
1e8ee9b3
""" Test suite for the code in msilib """
import
unittest
import
os
from
test.support
import
import_module
msilib
=
import_module
(
'msilib'
)
...
...
Lib/test/test_multibytecodec.py
View file @
1e8ee9b3
...
...
@@ -5,7 +5,7 @@
from
test
import
support
from
test.support
import
TESTFN
import
unittest
,
io
,
codecs
,
sys
,
os
import
unittest
,
io
,
codecs
,
sys
import
_multibytecodec
ALL_CJKENCODINGS
=
[
...
...
Lib/test/test_nis.py
View file @
1e8ee9b3
from
test
import
support
import
unittest
import
sys
# Skip test if nis module does not exist.
nis
=
support
.
import_module
(
'nis'
)
...
...
Lib/test/test_normalization.py
View file @
1e8ee9b3
...
...
@@ -3,7 +3,6 @@ import unittest
from
http.client
import
HTTPException
import
sys
import
os
from
unicodedata
import
normalize
,
unidata_version
TESTDATAFILE
=
"NormalizationTest.txt"
...
...
Lib/test/test_parser.py
View file @
1e8ee9b3
import
parser
import
unittest
import
sys
import
operator
import
struct
from
test
import
support
...
...
Lib/test/test_pep3151.py
View file @
1e8ee9b3
...
...
@@ -2,7 +2,6 @@ import builtins
import
os
import
select
import
socket
import
sys
import
unittest
import
errno
from
errno
import
EEXIST
...
...
Lib/test/test_posixpath.py
View file @
1e8ee9b3
import
itertools
import
os
import
posixpath
import
sys
import
unittest
import
warnings
from
posixpath
import
realpath
,
abspath
,
dirname
,
basename
...
...
Lib/test/test_pulldom.py
View file @
1e8ee9b3
import
io
import
unittest
import
sys
import
xml.sax
from
xml.sax.xmlreader
import
AttributesImpl
...
...
Lib/test/test_quopri.py
View file @
1e8ee9b3
import
unittest
import
sys
,
os
,
io
,
subprocess
import
sys
,
io
,
subprocess
import
quopri
...
...
Lib/test/test_sort.py
View file @
1e8ee9b3
from
test
import
support
import
random
import
sys
import
unittest
from
functools
import
cmp_to_key
...
...
Lib/test/test_strptime.py
View file @
1e8ee9b3
...
...
@@ -5,7 +5,6 @@ import time
import
locale
import
re
import
os
import
sys
from
test
import
support
from
datetime
import
date
as
datetime_date
...
...
Lib/test/test_tools/test_md5sum.py
View file @
1e8ee9b3
"""Tests for the md5sum script in the Tools directory."""
import
os
import
sys
import
unittest
from
test
import
support
from
test.support.script_helper
import
assert_python_ok
,
assert_python_failure
...
...
Lib/test/test_tools/test_pdeps.py
View file @
1e8ee9b3
"""Tests for the pdeps script in the Tools directory."""
import
os
import
sys
import
unittest
import
tempfile
from
test
import
support
...
...
Lib/test/test_ttk_guionly.py
View file @
1e8ee9b3
import
os
import
unittest
from
test
import
support
...
...
Lib/test/test_ttk_textonly.py
View file @
1e8ee9b3
import
os
from
test
import
support
# Skip this test if _tkinter does not exist.
...
...
Lib/test/test_unpack_ex.py
View file @
1e8ee9b3
...
...
@@ -352,7 +352,6 @@ Some size constraints (all fail.)
__test__
=
{
'doctests'
:
doctests
}
def
test_main
(
verbose
=
False
):
import
sys
from
test
import
support
from
test
import
test_unpack_ex
support
.
run_doctest
(
test_unpack_ex
,
verbose
)
...
...
Lib/test/test_urllibnet.py
View file @
1e8ee9b3
...
...
@@ -4,7 +4,6 @@ from test import support
import
contextlib
import
socket
import
urllib.request
import
sys
import
os
import
email.message
import
time
...
...
Lib/test/test_weakset.py
View file @
1e8ee9b3
...
...
@@ -3,9 +3,7 @@ from weakref import proxy, ref, WeakSet
import
operator
import
copy
import
string
import
os
from
random
import
randrange
,
shuffle
import
sys
import
warnings
import
collections
from
collections
import
UserString
as
ustr
...
...
Lib/test/test_xml_etree_c.py
View file @
1e8ee9b3
# xml.etree test for cElementTree
import
s
ys
,
s
truct
import
struct
from
test
import
support
from
test.support
import
import_fresh_module
import
types
...
...
Lib/test/test_xmlrpc_net.py
View file @
1e8ee9b3
import
collections.abc
import
errno
import
socket
import
sys
import
unittest
from
test
import
support
...
...
Lib/test/test_zipfile.py
View file @
1e8ee9b3
import
contextlib
import
io
import
os
import
sys
import
importlib.util
import
posixpath
import
time
...
...
Lib/tkinter/test/runtktests.py
View file @
1e8ee9b3
...
...
@@ -7,7 +7,6 @@ Extensions also should live in packages following the same rule as above.
"""
import
os
import
sys
import
unittest
import
importlib
import
test.support
...
...
Lib/unittest/test/testmock/support.py
View file @
1e8ee9b3
import
sys
def
is_instance
(
obj
,
klass
):
"""Version of is_instance that doesn't access __class__"""
return
issubclass
(
type
(
obj
),
klass
)
...
...
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