summaryrefslogtreecommitdiff
path: root/contrib/update-copyright.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/update-copyright.py')
-rw-r--r--contrib/update-copyright.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/update-copyright.py b/contrib/update-copyright.py
index 42d0bfbf2a3e..f7b522a13550 100644
--- a/contrib/update-copyright.py
+++ b/contrib/update-copyright.py
@@ -183,6 +183,7 @@ class Copyright:
'|[Cc]opyright\s+%s'
'|[Cc]opyright\s+©'
'|[Cc]opyright\s+@copyright{}'
+ '|copyright = u\''
'|@set\s+copyright[\w-]+)'
# 2: the years. Include the whitespace in the year, so that
@@ -363,7 +364,8 @@ class Copyright:
return (False, orig_line, next_line)
line = (line[:match.start (2)]
- + ' ' + canon_form + self.separator
+ + ('' if intro.startswith ('copyright = ') else ' ')
+ + canon_form + self.separator
+ line[match.end (2):])
# Use the standard (C) form.