aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Zverovich <viz@meta.com>2024-01-01 11:06:44 -0800
committerVictor Zverovich <viz@meta.com>2024-01-01 11:06:44 -0800
commit051b31531cafd157920049c2f42b866924b68f3f (patch)
tree2217089b3f995af83ea6e9e244916e4d0136b260
parentb0569451a798232efc7a5eaa0c210e6626069e06 (diff)
downloadfmtlib-051b31531cafd157920049c2f42b866924b68f3f.tar.gz
Fix changelog update
-rwxr-xr-xsupport/manage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/manage.py b/support/manage.py
index 55cc3bdf..cfb49797 100755
--- a/support/manage.py
+++ b/support/manage.py
@@ -238,7 +238,8 @@ def release(args):
for i, line in enumerate(fileinput.input(changelog_path, inplace=True)):
if i == 0:
version = re.match(r'# (.*) - TBD', line).group(1)
- line = version + ' - ' + datetime.date.today().isoformat() + '\n'
+ line = '# {} - {}\n'.format(
+ version, datetime.date.today().isoformat())
elif not is_first_section:
pass
elif line.startswith('#'):