Skip to content

Commit

Permalink
Remove execfile() from doc config file
Browse files Browse the repository at this point in the history
...since Python 3 does not have that function anymore.
  • Loading branch information
wbolster committed Jul 27, 2016
1 parent c470029 commit 1716721
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@
# 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.
Expand Down

0 comments on commit 1716721

Please sign in to comment.