diff options
author | Robbie Harwood <rharwood@redhat.com> | 2018-06-13 15:07:48 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2018-06-13 20:57:55 -0400 |
commit | a7c6d98480f1e33454173f88381921472d72f80a (patch) | |
tree | 23cfbce70f13719e3c9843c3e18707b0305e3c6c /doc | |
parent | 76aaa786db1051cd56ef8ac9157f8a30301c3949 (diff) | |
download | krb5-a7c6d98480f1e33454173f88381921472d72f80a.zip krb5-a7c6d98480f1e33454173f88381921472d72f80a.tar.gz krb5-a7c6d98480f1e33454173f88381921472d72f80a.tar.bz2 |
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)
Diffstat (limited to 'doc')
-rw-r--r-- | 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>`' |