forked from berkerpeksag/astor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If an f-string was ended with a newline character (more precisely, if the last element of a JoinedStr node was just a newline character), its round-trip source code representation would have an extra newline on a wrong place, resulting in invalid syntax. The bug affects only python>=3.6 (f-strings weren't supported before) This commit fixes the aforementioned bug. Fixes berkerpeksag#89.
- Loading branch information
1 parent
b47718f
commit bc28b5a
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters