Skip to content

Commit

Permalink
[devscripts/update-copyright] Update copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Jun 3, 2018
1 parent c6c478f commit f756085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devscripts/gh-pages/update-copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
for fn in glob.glob('*.html*'):
with io.open(fn, encoding='utf-8') as f:
content = f.read()
newc = re.sub(r'(?P<copyright>Copyright © 2006-)(?P<year>[0-9]{4})', 'Copyright © 2006-' + year, content)
newc = re.sub(r'(?P<copyright>Copyright © 2011-)(?P<year>[0-9]{4})', 'Copyright © 2011-' + year, content)
if content != newc:
tmpFn = fn + '.part'
with io.open(tmpFn, 'wt', encoding='utf-8') as outf:
Expand Down

0 comments on commit f756085

Please sign in to comment.