diff --git a/Makefile b/Makefile index 71d211290..b5f9dbb66 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ update: - python ./generate-download - python ./update-copyright + python3 ./generate-download + python3 ./update-copyright .PHONY: update diff --git a/update-copyright b/update-copyright index a37c4cada..95a3a3ba3 100644 --- a/update-copyright +++ b/update-copyright @@ -13,7 +13,7 @@ year = str(datetime.datetime.now().year) for fn in glob.glob('*.html'): with io.open(fn, encoding='utf-8') as f: content = f.read() - newc = re.sub(ur'(?PCopyright © 2006-)(?P[0-9]{4})', u'Copyright © 2006-' + year, content) + newc = re.sub(u'(?PCopyright © 2006-)(?P[0-9]{4})', u'Copyright © 2006-' + year, content) if content != newc: tmpFn = fn + '.part' with io.open(tmpFn, 'wt', encoding='utf-8') as outf: