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.
10 'What\'s the deal here?'
11 "What's the deal \"here\"?"
13 """Strings with "" in them"""
14 '''Strings with "" in them'''
17 '''Just a normal triple
19 f"just a normal {f} string"
20 f'''This is a triple-quoted {f}-string'''
21 f'MOAR {" ".join([])}'
22 f"MOAR {' '.join([])}"
24 r'Date d\'expiration:(.*)'
26 r'Not-so-tricky \"quote'
40 "x = '''; y = \"\"\"\""
41 "x = ''''; y = \"\"\"\"\""
42 "x = '' ''; y = \"\"\"\"\""
43 'unnecessary \"\"escaping'
44 "unnecessary \'\'escaping"
47 'Lots of \\\\\\\\\'quotes\''
49 f'{{y * " "}} \'{z}\''
55 # We must bail out if changing the quotes would introduce backslashes in f-string
56 # expressions. xref: https://github.com/psf/black/issues/2348
57 f"\"{b}\"{' ' * (long-len(b)+1)}: \"{sts}\",\n"
58 f"\"{a}\"{'hello' * b}\"{c}\""
71 "What's the deal here?"
72 'What\'s the deal "here"?'
74 """Strings with "" in them"""
75 """Strings with "" in them"""
78 """Just a normal triple
80 f"just a normal {f} string"
81 f"""This is a triple-quoted {f}-string"""
82 f'MOAR {" ".join([])}'
83 f"MOAR {' '.join([])}"
85 r"Date d\'expiration:(.*)"
87 r"Not-so-tricky \"quote"
89 "\nThe \"quick\"\nbrown fox\njumps over\nthe 'lazy' dog.\n"
96 'x = \'\'\'; y = """"'
97 'x = \'\'\'\'; y = """""'
98 'x = \'\' \'\'; y = """""'
99 'unnecessary ""escaping'
100 "unnecessary ''escaping"
103 "Lots of \\\\\\\\'quotes'"
105 f"{{y * \" \"}} '{z}'"
111 # We must bail out if changing the quotes would introduce backslashes in f-string
112 # expressions. xref: https://github.com/psf/black/issues/2348
113 f"\"{b}\"{' ' * (long-len(b)+1)}: \"{sts}\",\n"
114 f"\"{a}\"{'hello' * b}\"{c}\""