We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
root: WARNING: Files not processed due to syntax errors: root: WARNING: /usr/lib/python3.7/lib2to3/tests/data/bom.py root: WARNING: /usr/lib/python3.7/lib2to3/tests/data/crlf.py root: WARNING: /usr/lib/python3.7/lib2to3/tests/data/different_encoding.py root: WARNING: /usr/lib/python3.7/lib2to3/tests/data/false_encoding.py root: WARNING: /usr/lib/python3.7/lib2to3/tests/data/py2_test_grammar.py root: WARNING: /usr/lib/python3.7/test/bad_coding.py root: WARNING: /usr/lib/python3.7/test/bad_coding2.py root: WARNING: /usr/lib/python3.7/test/badsyntax_3131.py root: WARNING: /usr/lib/python3.7/test/badsyntax_pep3120.py root: WARNING: Files failed to round-trip to AST: root: WARNING: /usr/lib/python3.7/test/test_fstring.py
Turns out python's fstring test still failed to round trip after the fstring fixes.
The text was updated successfully, but these errors were encountered:
The generated test_fstring.py became SyntaxError:
File "test_fstring.py", line 534 self.assertEqual(f'{"eric\'s"}', "eric's") ^ SyntaxError: f-string expression part cannot include a backslash
The correct source is:
self.assertEqual(f"{'''eric's'''}", "eric's")
Generated srcdmp seems to be correct:
Expr( value=Call(func=Attribute(value=Name(id='self'), attr='assertEqual'), args=[ JoinedStr( values=[FormattedValue(value=Str(s="eric's"), conversion=-1, format_spec=None)]), Str(s="eric's")], keywords=[])),
Sorry, something went wrong.
Thanks for the report. This looks like the same case as reported at https://bugs.python.org/issue28002#msg341512.
python/cpython@a993e90 can be used as a starting point to fix this.
No branches or pull requests
Turns out python's fstring test still failed to round trip after the fstring fixes.
The text was updated successfully, but these errors were encountered: