From 1716721893648bb8e9a2022f7da142c8cd2018ad Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Wed, 27 Jul 2016 19:14:44 +0200 Subject: [PATCH] Remove execfile() from doc config file ...since Python 3 does not have that function anymore. --- doc/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 18c3249..4fead40 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -48,7 +48,11 @@ copyright = u'2012' # built documents. # # The short X.Y version. -execfile(os.path.join(os.path.dirname(__file__), '../happybase/_version.py')) +version_file = os.path.join( + os.path.dirname(__file__), + '../happybase/_version.py') +with open(version_file, 'r') as fp: + exec(fp.read()) version = __version__ # The full version, including alpha/beta/rc tags.