Replace occurrences of execfile()

This commit is contained in:
Lance Edgar 2017-07-06 16:25:29 -05:00
parent 91a14c81a9
commit 5bded89466
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
# Tailbone documentation build configuration file, created by
# sphinx-quickstart on Sat Feb 15 23:15:27 2014.
#
# This file is execfile()d with the current directory set to its
# This file is exec()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
@ -15,7 +15,7 @@
import sys
import os
execfile(os.path.join(os.pardir, 'tailbone', '_version.py'))
exec(open(os.path.join(os.pardir, 'tailbone', '_version.py')).read())
# If extensions (or modules to document with autodoc) are in another directory,

View file

@ -31,7 +31,7 @@ from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
execfile(os.path.join(here, 'tailbone', '_version.py'))
exec(open(os.path.join(here, 'tailbone', '_version.py')).read())
README = open(os.path.join(here, 'README.rst')).read()