On Sat, Aug 09 2014, Gaute Hope <eg@gaute.vetsj.com> wrote: > at some point in python 3.* execfile was removed. per > http://stackoverflow.com/questions/6357361/alternative-to-execfile-in-python-3-2 > the execefile has been replaced in the same manner as python 2to3 helper > script would do. > > tested on python 3.4.1 and 2.7.8. > --- Thanks for the patch -- I have use the idea elsewhere with ipython :D Trevor has a patch series which takes care e.g. of this: id:"8cc9dd580ad672527e12f43706f9803b2c8e99d8.1405220724.git.wking@tremily.us" http://article.gmane.org/gmane.mail.notmuch.general/18661 Tomi > doc/prerst2man.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/doc/prerst2man.py b/doc/prerst2man.py > index 437dea9..3f85c0c 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") > +filename = sourcedir + "/conf.py" > +exec(compile(open(filename, "rb").read(), filename, 'exec')) > > > def header(file, startdocname, command, description, authors, section): > -- > 2.0.3 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch