Commit 14c1860e authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 82cdadca
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# #
import os, re import os, re
from string import join, replace
from types import ListType, TupleType from types import ListType, TupleType
from Scanning import PyrexScanner from Scanning import PyrexScanner
import Nodes import Nodes
...@@ -1008,7 +1007,7 @@ def p_dotted_name(s, as_allowed): ...@@ -1008,7 +1007,7 @@ def p_dotted_name(s, as_allowed):
names.append(p_ident(s)) names.append(p_ident(s))
if as_allowed: if as_allowed:
as_name = p_as_name(s) as_name = p_as_name(s)
return (pos, target_name, join(names, "."), as_name) return (pos, target_name, u'.'join(names), as_name)
def p_as_name(s): def p_as_name(s):
if s.sy == 'IDENT' and s.systring == 'as': if s.sy == 'IDENT' and s.systring == 'as':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment