Remove execfile() from doc config file

...since Python 3 does not have that function anymore.
This commit is contained in:
Wouter Bolsterlee
2016-07-27 19:14:44 +02:00
parent c470029ba7
commit 1716721893

View File

@@ -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.