Skip to content

Commit 37b01b7

Browse files
committed
prefix each line with r for multiple lines
1 parent 07d3759 commit 37b01b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
version_re = re.compile(
2222
r"^([1-9][0-9]*!)?(0|[1-9][0-9]*)"
23-
"(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))"
24-
"?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$"
23+
r"(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))"
24+
r"?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$"
2525
)
2626
if not version_re.match(version_string):
2727
# Generate version based on the datetime.now(): e.g., 2023.5.17.dev1684352560.

0 commit comments

Comments
 (0)