From de111108ef73e43d522ae908adac5945590c07b9 2015-01-30 22:53:12 From: Min RK Date: 2015-01-30 22:53:12 Subject: [PATCH] py3compat: execfile in sphinx conf.py --- diff --git a/docs/source/conf.py b/docs/source/conf.py index 8a7b1e1..bf56e4f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -32,7 +32,7 @@ sys.path.insert(0, os.path.abspath('../sphinxext')) # We load the ipython release info into a dict by explicit execution iprelease = {} -execfile('../../IPython/core/release.py',iprelease) +exec(compile(open('../../IPython/core/release.py').read(), '../../IPython/core/release.py', 'exec'),iprelease) # General configuration # ---------------------