diff options
| author | David Bremner <david@tethera.net> | 2015-01-03 14:14:03 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-01-03 15:18:54 +0100 |
| commit | 2bb906a6dd21fe109cc921590a512c1af7ff150d (patch) | |
| tree | fd1b413e8a46bcd0df67692a450df5a427462308 /doc | |
| parent | 3220230317857ae47ff64fc67240effd6cf8a76f (diff) | |
build: eliminate use of python execfile command
As discussed in
id:8cc9dd580ad672527e12f43706f9803b2c8e99d8.1405220724.git.wking@tremily.us,
execfile is unavailable in python3.
The approach of this commit avoids modifying the python module path,
which is arguably preferable since it avoids potentially accidentally
importing a module from the wrong place.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/prerst2man.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/prerst2man.py b/doc/prerst2man.py index 437dea99..968722a1 100644 --- a/doc/prerst2man.py +++ b/doc/prerst2man.py @@ -10,7 +10,8 @@ outdir = argv[2] if not isdir(outdir): makedirs(outdir, 0o755) -execfile(sourcedir + "/conf.py") +with open(sourcedir + "/conf.py") as cf: + exec(cf.read()) def header(file, startdocname, command, description, authors, section): |
