update-copyright.py (Copyright.__init__): Add a regexp for "copyright = u'".
contrib/ * update-copyright.py (Copyright.__init__): Add a regexp for "copyright = u'". (Copyright.update_copyright): Don't add a space before the year in that case. From-SVN: r219692
This commit is contained in:
parent
1d59990631
commit
8fced9b976
@ -1,3 +1,10 @@
|
||||
2015-01-15 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
* update-copyright.py (Copyright.__init__): Add a regexp for
|
||||
"copyright = u'".
|
||||
(Copyright.update_copyright): Don't add a space before the year
|
||||
in that case.
|
||||
|
||||
2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* gcc_update (files_and_dependencies): Update rules for new
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user