Permalink
Browse files

more import cleanups

  • Loading branch information...
1 parent eeeb039 commit bdcf0f26741f61a78c07e13a9a354a76330e3585 @scoder scoder committed Nov 13, 2011
Showing with 3 additions and 8 deletions.
  1. +3 −4 Cython/CodeWriter.py
  2. +0 −1 Cython/Plex/Regexps.py
  3. +0 −1 Cython/Plex/Transitions.py
  4. +0 −2 Cython/TestUtils.py
View
7 Cython/CodeWriter.py
@@ -1,7 +1,3 @@
-from Cython.Compiler.Visitor import TreeVisitor
-from Cython.Compiler.Nodes import *
-from Cython.Compiler.ExprNodes import *
-
"""
Serializes a Cython code tree to Cython code. This is primarily useful for
debugging and testing purposes.
@@ -10,6 +6,9 @@
is preserved (and it could not be as it is not present in the code tree).
"""
+from Cython.Compiler.Visitor import TreeVisitor
+from Cython.Compiler.ExprNodes import *
+
class LinesResult(object):
def __init__(self):
self.lines = []
View
1 Cython/Plex/Regexps.py
@@ -6,7 +6,6 @@
#
#=======================================================================
-import array
import types
from sys import maxint as maxint
View
1 Cython/Plex/Transitions.py
@@ -5,7 +5,6 @@
# for speed.
#
-from copy import copy
from sys import maxint as maxint
class TransitionMap(object):
View
2 Cython/TestUtils.py
@@ -1,7 +1,5 @@
import Cython.Compiler.Errors as Errors
from Cython.CodeWriter import CodeWriter
-from Cython.Compiler.ModuleNode import ModuleNode
-import Cython.Compiler.Main as Main
from Cython.Compiler.TreeFragment import TreeFragment, strip_common_indent
from Cython.Compiler.Visitor import TreeVisitor, VisitorTransform
from Cython.Compiler import TreePath

0 comments on commit bdcf0f2

Please sign in to comment.