diff options
author | Wouter Bolsterlee <wouter@bolsterl.ee> | 2016-07-27 19:14:44 +0200 |
---|---|---|
committer | Wouter Bolsterlee <wouter@bolsterl.ee> | 2016-07-27 19:14:44 +0200 |
commit | 1716721893648bb8e9a2022f7da142c8cd2018ad (patch) | |
tree | 3507db88d0a5ad089544770500d4d7e40478577d | |
parent | c470029ba744109d6de843fc3a96a76edbd909b9 (diff) | |
download | happybase-1716721893648bb8e9a2022f7da142c8cd2018ad.tar.gz |
Remove execfile() from doc config file
...since Python 3 does not have that function anymore.
-rw-r--r-- | doc/conf.py | 6 |
1 files changed, 5 insertions, 1 deletions
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. |