]> git.notmuchmail.org Git - notmuch/blobdiff - doc/prerst2man.py
build: eliminate use of python execfile command
[notmuch] / doc / prerst2man.py
index 437dea99b6e520697daff811009b890edd7abb2d..968722a1c750c620e24e1d5869269930bd3e5b96 100644 (file)
@@ -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):