mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-05 16:59:41 +00:00
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:
parent
306056da14
commit
3459495617
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user