Commit 2dbbe5a2 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash due to non-wrapped identifier string in parser

parent e0408e14
......@@ -1333,7 +1333,7 @@ def p_from_import_statement(s, first_statement = 0):
level = None
if level is not None and s.sy in ('import', 'cimport'):
# we are dealing with "from .. import foo, bar"
dotted_name_pos, dotted_name = s.position(), ''
dotted_name_pos, dotted_name = s.position(), s.context.intern_ustring('')
else:
if level is None and Future.absolute_import in s.context.future_directives:
level = 0
......
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