Skip to content

Commit b233563

Browse files
authored
use raw string literal for regex (#675)
Uses a raw string literal for the regex to avoid ``` python-build-standalone/pythonbuild/cpython.py:675: SyntaxWarning: invalid escape sequence '\{' RE_INITTAB_ENTRY = re.compile('\{"([^"]+)", ([^\}]+)\},') ```
1 parent e17faa9 commit b233563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonbuild/cpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def derive_setup_local(
672672
}
673673

674674

675-
RE_INITTAB_ENTRY = re.compile('\{"([^"]+)", ([^\}]+)\},')
675+
RE_INITTAB_ENTRY = re.compile(r'\{"([^"]+)", ([^\}]+)\},')
676676

677677

678678
def parse_config_c(s: str):

0 commit comments

Comments
 (0)