clean up imports
authorStefan Behnel <scoder@users.berlios.de>
Sun, 3 May 2009 20:06:15 +0000 (22:06 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 3 May 2009 20:06:15 +0000 (22:06 +0200)
Cython/Compiler/Parsing.py

index b92de51769299769b0cfab42e3b8f09be84f135b..31210e419e9e5e39540b9414aaa88e51a4f42523 100644 (file)
@@ -10,7 +10,6 @@ cython.declare(Nodes=object, ExprNodes=object, EncodedString=object)
 import os
 import re
 import sys
-from types import ListType, TupleType
 from Cython.Compiler.Scanning import PyrexScanner, FileSourceDescriptor
 import Nodes
 import ExprNodes
@@ -2642,6 +2641,7 @@ def p_module(s, pxd, full_module_name):
 #----------------------------------------------
 
 def print_parse_tree(f, node, level, key = None):
+    from types import ListType, TupleType
     from Nodes import Node
     ind = "  " * level
     if node: