mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Allow fstrings in check_quotes
This commit is contained in:
parent
f0ee71a0db
commit
0b27206d50
2 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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 = '"'
|
||||
|
|
Loading…
Add table
Reference in a new issue