gen-changelog.py: Don't escaping '/' with '\' in regexp

Python 3.12 on Fedora 39 complains that we should not escape the '/' character with
a '\' character in a regular expression.  Fixed thus.

	* gen-changelog.py (get_rel_tags): Do not escape '/' with '\' in
	regexp.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2023-10-20 18:16:12 +02:00
parent 306056da14
commit 3459495617
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ def output_commits():
def get_rel_tags():
# Populate the release_refs dict with the tags for previous releases
reltagre = re.compile("^([a-z0-9]{40}) refs\/tags\/GNET-([0-9]+)[-_.]([0-9]+)[-_.]([0-9]+)")
reltagre = re.compile("^([a-z0-9]{40}) refs/tags/GNET-([0-9]+)[-_.]([0-9]+)[-_.]([0-9]+)")
cmd = ['git', 'show-ref', '--tags', '--dereference']
p = subprocess.Popen(args=cmd, shell=False,
@ -134,7 +134,7 @@ def get_rel_tags():
release_refs[sha] = (maj, min, nano)
def find_start_tag():
starttagre = re.compile("^([a-z0-9]{40}) refs\/tags\/CHANGELOG_START")
starttagre = re.compile("^([a-z0-9]{40}) refs/tags/CHANGELOG_START")
cmd = ['git', 'show-ref', '--tags']
p = subprocess.Popen(args=cmd, shell=False,
stdout=subprocess.PIPE,