Allow fstrings in check_quotes

This commit is contained in:
Nico Lehmann 2017-10-27 23:58:25 -07:00
parent f0ee71a0db
commit 0b27206d50
2 changed files with 2 additions and 1 deletions

View file

@ -432,6 +432,7 @@ def test_replace_logical_line(src, idx, exp_line, exp_n):
("'y'", True),
('b"x"', True),
("r'y'", True),
("f'z'", True),
('"""hello\nmom"""', True),
])
def test_check_quotes(inp, exp):

View file

@ -1631,7 +1631,7 @@ def format_std_prepost(template, env=None):
return s
_RE_STRING_START = "[bBprRuU]*"
_RE_STRING_START = "[bBprRuUf]*"
_RE_STRING_TRIPLE_DOUBLE = '"""'
_RE_STRING_TRIPLE_SINGLE = "'''"
_RE_STRING_DOUBLE = '"'