-
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.
Convert simple double-quoted strings to single-quoted. Convert triple (single) quoted strings to triple (double) quoted. Do not touch any strings that have backslashes or quotes inside the string. Fixes psf#51.
- Loading branch information
Showing
10 changed files
with
253 additions
and
173 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"Hello" | ||
"Don't do that" | ||
'Here is a "' | ||
'What\'s the deal here?' | ||
"What's the deal \"here\"?" | ||
"And \"here\"?" | ||
"""Strings with "" in them""" | ||
'''Strings with "" in them''' | ||
'''Here's a "''' | ||
'''Here's a " ''' | ||
'''Just a normal triple | ||
quote''' | ||
f"just a normal {f} string" | ||
f'''This is a triple-quoted {f}-string''' | ||
f'MOAR {" ".join([])}' | ||
f"MOAR {' '.join([])}" | ||
r"raw string ftw" | ||
|
||
# output | ||
|
||
"Hello" | ||
"Don't do that" | ||
'Here is a "' | ||
"What's the deal here?" | ||
'What\'s the deal "here"?' | ||
'And "here"?' | ||
"""Strings with "" in them""" | ||
"""Strings with "" in them""" | ||
'''Here's a "''' | ||
"""Here's a " """ | ||
"""Just a normal triple | ||
quote""" | ||
f"just a normal {f} string" | ||
f"""This is a triple-quoted {f}-string""" | ||
f'MOAR {" ".join([])}' | ||
f"MOAR {' '.join([])}" | ||
r"raw string ftw" |
Oops, something went wrong.