[30230] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Make docs build python3-compatible

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Jun 13 22:26:37 2018

Date: Wed, 13 Jun 2018 22:26:31 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201806140226.w5E2QVWc014329@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/a7c6d98480f1e33454173f88381921472d72f80a
commit a7c6d98480f1e33454173f88381921472d72f80a
Author: Robbie Harwood <rharwood@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>`'
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post