projects
/
update-copyright.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
project|utils: expand info into kwargs for format().
[update-copyright.git]
/
update_copyright
/
utils.py
diff --git
a/update_copyright/utils.py
b/update_copyright/utils.py
index 3135c794023724fb3912db48cc041c21f098d6bf..32373fcfd47cfc96056061eb14df8274b1dc0b0c 100644
(file)
--- a/
update_copyright/utils.py
+++ b/
update_copyright/utils.py
@@
-127,7
+127,7
@@
def copyright_string(original_year, final_year, authors, text, info={},
for i,paragraph in enumerate(text):
try:
- text[i] = paragraph.format(info)
+ text[i] = paragraph.format(
**
info)
except ValueError as e:
_LOG.error(
"{}: can't format {} with {}".format(e, paragraph, info))