cleanup
authorStefan Behnel <scoder@users.berlios.de>
Mon, 24 Nov 2008 17:06:35 +0000 (18:06 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 24 Nov 2008 17:06:35 +0000 (18:06 +0100)
Cython/Compiler/Parsing.py

index 98cc2d7a05fcb1234e3ca0e16b70674b6a5ed85e..06c226d3c2f4d556f93cc25e8621a0c48d82713d 100644 (file)
@@ -42,10 +42,6 @@ class Ctx(object):
         d.update(kwds)
         return ctx
 
-def eat_newlines(s):
-    while s.sy == 'NEWLINE':
-        s.next()
-
 def p_ident(s, message = "Expected an identifier"):
     if s.sy == 'IDENT':
         name = s.systring
@@ -1034,17 +1030,10 @@ def p_from_import_statement(s, first_statement = 0):
         if s.sy == '(':
             is_parenthesized = True
             s.next()
-            eat_newlines(s)
         imported_names = [p_imported_name(s, is_cimport)]
-        if is_parenthesized:
-            eat_newlines(s)
     while s.sy == ',':
         s.next()
-        if is_parenthesized:
-            eat_newlines(s)
         imported_names.append(p_imported_name(s, is_cimport))
-        if is_parenthesized:
-            eat_newlines(s)
     if is_parenthesized:
         s.expect(')')
     dotted_name = EncodedString(dotted_name)