make-version.py: Add missing parentheses on function call

`match.groups()` is a function, not an attribute. Add () as needed to access match group items.
This commit is contained in:
Moshe Kaplan 2022-07-28 21:02:54 +00:00 committed by Gerald Combs
parent 05eee7f71c
commit fa3735378f
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ def read_git_archive(tagged_version_extra, untagged_version_extra):
match = re.match(r'^tag: (v[1-9].+)', git_ref)
if match:
is_tagged = True
vcs_tag = match.groups[0]
vcs_tag = match.groups()[0]
if is_tagged:
print(f"We are on tag {vcs_tag}.")