Skip to content

Commit dd01c24

Browse files
committed
Fix invalid escape sequences
1 parent cb25402 commit dd01c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: fprettify/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def split(self, line):
269269
LR_OPS_RE = [REL_OP_RE, LOG_OP_RE, plusminus_parser(PLUSMINUS_RE), MULTDIV_RE, PRINT_RE]
270270

271271
USE_RE = re.compile(
272-
SOL_STR + "USE(\s+|(,.+?)?::\s*)\w+?((,.+?=>.+?)+|,\s*only\s*:.+?)?$" + EOL_STR, RE_FLAGS)
272+
SOL_STR + r"USE(\s+|(,.+?)?::\s*)\w+?((,.+?=>.+?)+|,\s*only\s*:.+?)?$" + EOL_STR, RE_FLAGS)
273273

274274
# markups to deactivate formatter
275275
NO_ALIGN_RE = re.compile(SOL_STR + r"&\s*[^\s*]+")

0 commit comments

Comments
 (0)