All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
9 'What\'s the deal here?'
10 "What's the deal \"here\"?"
12 """Strings with "" in them"""
13 '''Strings with "" in them'''
16 '''Just a normal triple
18 f"just a normal {f} string"
19 f'''This is a triple-quoted {f}-string'''
20 f'MOAR {" ".join([])}'
21 f"MOAR {' '.join([])}"
23 r'Date d\'expiration:(.*)'
25 r'Not-so-tricky \"quote'
39 "x = '''; y = \"\"\"\""
40 "x = ''''; y = \"\"\"\"\""
41 "x = '' ''; y = \"\"\"\"\""
42 'unnecessary \"\"escaping'
43 "unnecessary \'\'escaping"
46 'Lots of \\\\\\\\\'quotes\''
48 f'{{y * " "}} \'{z}\''
54 # We must bail out if changing the quotes would introduce backslashes in f-string
55 # expressions. xref: https://github.com/psf/black/issues/2348
56 f"\"{b}\"{' ' * (long-len(b)+1)}: \"{sts}\",\n"
57 f"\"{a}\"{'hello' * b}\"{c}\""
69 "What's the deal here?"
70 'What\'s the deal "here"?'
72 """Strings with "" in them"""
73 """Strings with "" in them"""
76 """Just a normal triple
78 f"just a normal {f} string"
79 f"""This is a triple-quoted {f}-string"""
80 f'MOAR {" ".join([])}'
81 f"MOAR {' '.join([])}"
83 r"Date d\'expiration:(.*)"
85 r"Not-so-tricky \"quote"
87 "\nThe \"quick\"\nbrown fox\njumps over\nthe 'lazy' dog.\n"
94 'x = \'\'\'; y = """"'
95 'x = \'\'\'\'; y = """""'
96 'x = \'\' \'\'; y = """""'
97 'unnecessary ""escaping'
98 "unnecessary ''escaping"
101 "Lots of \\\\\\\\'quotes'"
103 f"{{y * \" \"}} '{z}'"
109 # We must bail out if changing the quotes would introduce backslashes in f-string
110 # expressions. xref: https://github.com/psf/black/issues/2348
111 f"\"{b}\"{' ' * (long-len(b)+1)}: \"{sts}\",\n"
112 f"\"{a}\"{'hello' * b}\"{c}\""