You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/mdickinson'closed_at=<Date2010-07-04.18:40:56.019>created_at=<Date2010-06-30.19:31:05.718>labels= ['extension-modules', 'type-bug']
title='Parser module fails on short relative imports'updated_at=<Date2010-07-04.18:40:56.017>user='https://github.com/mdickinson'
Python 2.7rc2+ (trunk:82399M, Jun 30 2010, 17:10:13)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import parser
[35303 refs]
>>> parser.sequence2st(parser.suite("from . import me").totuple())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
parser.ParserError: VALIDATION FAILURE: report this to the maintainer!
[35341 refs]
With this patch, and the one in bpo-9128, the parser module roundtrips correctly on all Lib/.py and all Lib/test/.py files (except for Lib/test/bad*.py). Tested by doing:
Fixed in revisions r82543, r82546, r82552, r82553, r82554.
Leaving open because I'm suspicious that the parser module isn't handling relative imports with more than three dots correctly in py3k (since ... gets parsed as an ellipsis token).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: