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
+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
'|[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
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.