Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
6e56db7e
Commit
6e56db7e
authored
Feb 15, 2022
by
Matus Valo
Committed by
GitHub
Feb 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused imports (GH-4643)
parent
4370a0bc
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
12 additions
and
32 deletions
+12
-32
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+1
-2
Cython/Build/IpythonMagic.py
Cython/Build/IpythonMagic.py
+0
-5
Cython/CodeWriter.py
Cython/CodeWriter.py
+1
-1
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+0
-1
Cython/Compiler/Code.py
Cython/Compiler/Code.py
+0
-1
Cython/Compiler/Dataclass.py
Cython/Compiler/Dataclass.py
+2
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-4
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-1
Cython/Compiler/Tests/TestTreeFragment.py
Cython/Compiler/Tests/TestTreeFragment.py
+0
-1
Cython/Compiler/Tests/TestTreePath.py
Cython/Compiler/Tests/TestTreePath.py
+0
-1
Cython/Debugger/Tests/test_libpython_in_gdb.py
Cython/Debugger/Tests/test_libpython_in_gdb.py
+1
-4
Cython/Distutils/extension.py
Cython/Distutils/extension.py
+0
-5
No files found.
Cython/Build/Dependencies.py
View file @
6e56db7e
...
...
@@ -10,7 +10,6 @@ import os
import
shutil
import
subprocess
import
re
,
sys
,
time
import
warnings
from
glob
import
iglob
from
io
import
open
as
io_open
from
os.path
import
relpath
as
_relpath
...
...
@@ -44,7 +43,7 @@ except:
from
..
import
Utils
from
..Utils
import
(
cached_function
,
cached_method
,
path_exists
,
safe_makedirs
,
copy_file_to_dir_if_newer
,
is_package_dir
,
replace_suffix
)
safe_makedirs
,
copy_file_to_dir_if_newer
,
is_package_dir
)
from
..Compiler
import
Errors
from
..Compiler.Main
import
Context
from
..Compiler.Options
import
CompilationOptions
,
default_options
...
...
Cython/Build/IpythonMagic.py
View file @
6e56db7e
...
...
@@ -59,11 +59,6 @@ import textwrap
IO_ENCODING
=
sys
.
getfilesystemencoding
()
IS_PY2
=
sys
.
version_info
[
0
]
<
3
try
:
from
importlib
import
reload
except
ImportError
:
# Python 2 had a builtin function
pass
import
hashlib
from
distutils.core
import
Distribution
,
Extension
from
distutils.command.build_ext
import
build_ext
...
...
Cython/CodeWriter.py
View file @
6e56db7e
...
...
@@ -9,7 +9,7 @@ from __future__ import absolute_import, print_function
from
.Compiler.Visitor
import
TreeVisitor
from
.Compiler.ExprNodes
import
*
from
.Compiler.Nodes
import
C
NameDeclaratorNode
,
C
SimpleBaseTypeNode
from
.Compiler.Nodes
import
CSimpleBaseTypeNode
class
LinesResult
(
object
):
...
...
Cython/Compiler/Builtin.py
View file @
6e56db7e
...
...
@@ -9,7 +9,6 @@ from .Symtab import BuiltinScope, StructOrUnionScope, ModuleScope
from
.Code
import
UtilityCode
from
.TypeSlots
import
Signature
from
.
import
PyrexTypes
from
.
import
Options
# C-level implementations of builtin types, functions and methods
...
...
Cython/Compiler/Code.py
View file @
6e56db7e
...
...
@@ -28,7 +28,6 @@ from . import Naming
from
.
import
Options
from
.
import
DebugFlags
from
.
import
StringEncoding
from
.
import
Version
from
..
import
Utils
from
.Scanning
import
SourceDescriptor
from
..StringIOTree
import
StringIOTree
...
...
Cython/Compiler/Dataclass.py
View file @
6e56db7e
...
...
@@ -7,16 +7,14 @@ import operator
from
.
import
ExprNodes
from
.
import
Nodes
from
.
import
PyrexTypes
from
.
import
UtilNodes
from
.
import
Builtin
from
.
import
Naming
from
.Errors
import
error
,
warning
from
.Code
import
UtilityCode
,
TempitaUtilityCode
from
.Visitor
import
VisitorTransform
from
.StringEncoding
import
BytesLiteral
,
EncodedString
from
.StringEncoding
import
EncodedString
from
.TreeFragment
import
TreeFragment
from
.ParseTreeTransforms
import
(
NormalizeTree
,
SkipDeclarations
,
AnalyseDeclarationsTransform
,
MarkClosureVisitor
)
from
.ParseTreeTransforms
import
NormalizeTree
,
SkipDeclarations
from
.Options
import
copy_inherited_directives
_dataclass_loader_utilitycode
=
None
...
...
Cython/Compiler/ExprNodes.py
View file @
6e56db7e
...
...
@@ -29,9 +29,9 @@ from .Code import UtilityCode, TempitaUtilityCode
from
.
import
StringEncoding
from
.
import
Naming
from
.
import
Nodes
from
.Nodes
import
Node
,
utility_code_for_imports
,
SingleAssignmentNode
,
PassStatNode
from
.Nodes
import
Node
,
utility_code_for_imports
,
SingleAssignmentNode
from
.
import
PyrexTypes
from
.PyrexTypes
import
py_object_type
,
c_long_type
,
typecast
,
error_type
,
\
from
.PyrexTypes
import
py_object_type
,
typecast
,
error_type
,
\
unspecified_type
from
.
import
TypeSlots
from
.Builtin
import
(
...
...
@@ -45,8 +45,8 @@ from .. import Utils
from
.Annotate
import
AnnotationItem
from
.
import
Future
from
..Debugging
import
print_call_chain
from
.DebugFlags
import
debug_disposal_code
,
debug_
temp_alloc
,
\
debug_coercion
from
.DebugFlags
import
debug_disposal_code
,
debug_
coercion
from
.Pythran
import
(
to_pythran
,
is_pythran_supported_type
,
is_pythran_supported_operation_type
,
is_pythran_expr
,
pythran_func_type
,
pythran_binop_type
,
pythran_unaryop_type
,
has_np_pythran
,
pythran_indexing_code
,
pythran_indexing_type
,
is_pythran_supported_node_or_none
,
pythran_type
,
...
...
Cython/Compiler/Nodes.py
View file @
6e56db7e
...
...
@@ -13,7 +13,7 @@ cython.declare(sys=object, os=object, copy=object,
CppClassScope
=
object
,
UtilityCode
=
object
,
EncodedString
=
object
,
error_type
=
object
,
_py_int_types
=
object
)
import
sys
,
os
,
copy
import
sys
,
copy
from
itertools
import
chain
from
.
import
Builtin
...
...
Cython/Compiler/Parsing.py
View file @
6e56db7e
...
...
@@ -22,7 +22,7 @@ import sys
from
unicodedata
import
lookup
as
lookup_unicodechar
,
category
as
unicode_category
from
functools
import
partial
,
reduce
from
.Scanning
import
PyrexScanner
,
FileSourceDescriptor
,
StringSourceDescriptor
from
.Scanning
import
PyrexScanner
,
FileSourceDescriptor
from
.
import
Nodes
from
.
import
ExprNodes
from
.
import
Builtin
...
...
Cython/Compiler/PyrexTypes.py
View file @
6e56db7e
...
...
@@ -19,7 +19,7 @@ from .Code import UtilityCode, LazyUtilityCode, TempitaUtilityCode
from
.
import
StringEncoding
from
.
import
Naming
from
.Errors
import
error
,
warning
,
CannotSpecialize
from
.Errors
import
error
,
CannotSpecialize
class
BaseType
(
object
):
...
...
Cython/Compiler/Tests/TestTreeFragment.py
View file @
6e56db7e
...
...
@@ -2,7 +2,6 @@ from Cython.TestUtils import CythonTest
from
Cython.Compiler.TreeFragment
import
*
from
Cython.Compiler.Nodes
import
*
from
Cython.Compiler.UtilNodes
import
*
import
Cython.Compiler.Naming
as
Naming
class
TestTreeFragments
(
CythonTest
):
...
...
Cython/Compiler/Tests/TestTreePath.py
View file @
6e56db7e
import
unittest
from
Cython.Compiler.Visitor
import
PrintTree
from
Cython.TestUtils
import
TransformTest
from
Cython.Compiler.TreePath
import
find_first
,
find_all
from
Cython.Compiler
import
Nodes
,
ExprNodes
...
...
Cython/Debugger/Tests/test_libpython_in_gdb.py
View file @
6e56db7e
...
...
@@ -6,16 +6,13 @@ Lib/test/test_gdb.py in the Python source. These tests are run in gdb and
called from test_libcython_in_gdb.main()
"""
import
os
import
sys
import
gdb
from
Cython.Debugger
import
libcython
from
Cython.Debugger
import
libpython
from
.
import
test_libcython_in_gdb
from
.test_libcython_in_gdb
import
_debug
,
inferior_python_version
from
.test_libcython_in_gdb
import
inferior_python_version
class
TestPrettyPrinters
(
test_libcython_in_gdb
.
DebugTestCase
):
...
...
Cython/Distutils/extension.py
View file @
6e56db7e
...
...
@@ -8,11 +8,6 @@ __revision__ = "$Id:$"
import
sys
import
distutils.extension
as
_Extension
try
:
import
warnings
except
ImportError
:
warnings
=
None
class
Extension
(
_Extension
.
Extension
):
# When adding arguments to this constructor, be sure to update
...
...
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