From 37b01b734525b7fa0cdaf39f87b4cc91588e6071 Mon Sep 17 00:00:00 2001 From: David Mejia Date: Wed, 3 Jul 2024 10:31:39 -0400 Subject: [PATCH] prefix each line with r for multiple lines --- common/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/setup.py b/common/setup.py index 4234b9ab5..5d5e5a0b1 100644 --- a/common/setup.py +++ b/common/setup.py @@ -20,8 +20,8 @@ version_re = re.compile( r"^([1-9][0-9]*!)?(0|[1-9][0-9]*)" - "(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))" - "?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$" + r"(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))" + r"?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$" ) if not version_re.match(version_string): # Generate version based on the datetime.now(): e.g., 2023.5.17.dev1684352560.