Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
Fix a parser bug related to relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sccolbert committed Nov 22, 2012
1 parent 20c3179 commit 3e43e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enaml/core/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ def p_import_from4(p):

def p_import_from5(p):
''' import_from : FROM import_from_dots dotted_name IMPORT import_as_name '''
imprt = ast.ImportFrom(module=p[3], names=p[5], level=len(p[2]))
imprt = ast.ImportFrom(module=p[3], names=[p[5]], level=len(p[2]))
imprt.col_offset = 0
p[0] = imprt

Expand Down

0 comments on commit 3e43e73

Please sign in to comment.