File: 0001-Replace-execfile-call-with-Python3-compatible-versio.patch

package info (click to toggle)
python-django-imagekit 4.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 684 kB
  • sloc: python: 2,000; makefile: 133
file content (23 lines) | stat: -rw-r--r-- 898 bytes parent folder | download | duplicates (2)
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