1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Tue, 18 Jul 2017 17:24:32 +0200
Subject: Replace execfile call with Python3 compatible version.
---
docs/conf.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index 35f184d..ba2d5d5 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -46,8 +46,8 @@ project = u'ImageKit'
copyright = u'2011, Justin Driscoll, Bryan Veloso, Greg Newman, Chris Drackett & Matthew Tretter'
pkgmeta = {}
-execfile(os.path.join(os.path.dirname(__file__), '..', 'imagekit',
- 'pkgmeta.py'), pkgmeta)
+with open(os.path.join(os.path.dirname(__file__), '..', 'imagekit', 'pkgmeta.py'), 'r') as fh:
+ exec(fh.read(), pkgmeta)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
|