krb5 commit: Make docs build python3-compatible
Greg Hudson
ghudson at mit.edu
Wed Jun 13 22:26:31 EDT 2018
https://github.com/krb5/krb5/commit/a7c6d98480f1e33454173f88381921472d72f80a
commit a7c6d98480f1e33454173f88381921472d72f80a
Author: Robbie Harwood <rharwood at redhat.com>
Date: Wed Jun 13 15:07:48 2018 -0400
Make docs build python3-compatible
python3 removed execfile(), which we use for loading version data and
paths information in docs. Call exec() directly instead.
ticket: 8692 (new)
doc/conf.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/conf.py b/doc/conf.py
index 25ba214..0555808 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -50,7 +50,7 @@ copyright = u'1985-2018, MIT'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
-execfile("version.py")
+exec(open("version.py").read())
# The short X.Y version.
r_list = [r_major, r_minor]
if r_patch:
@@ -238,7 +238,7 @@ if 'mansubs' in tags:
ckeytab = '``@CKTNAME@``'
elif 'pathsubs' in tags:
# Read configured paths from a file produced by the build system.
- execfile('paths.py')
+ exec(open("paths.py").read())
else:
bindir = ':ref:`BINDIR <paths>`'
sbindir = ':ref:`SBINDIR <paths>`'
More information about the cvs-krb5
mailing list