From c860c18297e0296cc1ae45b7dba6212f1fbb3f8b Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 16 Dec 2012 13:33:56 +0100 Subject: [PATCH] Build everything with Python 3 --- Makefile | 4 ++-- update-copyright | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: