1 Return-Path: <tomi.ollila@iki.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 9B65C431FB6
\r
6 for <notmuch@notmuchmail.org>; Sat, 9 Aug 2014 06:56:41 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id SeeTJlHUxP8s for <notmuch@notmuchmail.org>;
\r
16 Sat, 9 Aug 2014 06:56:33 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 8B255431FAE
\r
19 for <notmuch@notmuchmail.org>; Sat, 9 Aug 2014 06:56:33 -0700 (PDT)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id 06B98100051;
\r
22 Sat, 9 Aug 2014 16:56:19 +0300 (EEST)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: Gaute Hope <eg@gaute.vetsj.com>, notmuch@notmuchmail.org
\r
25 Subject: Re: [PATCH] doc/prerst2man.py: swap execfile with an exec call
\r
26 In-Reply-To: <1407591591-25203-1-git-send-email-eg@gaute.vetsj.com>
\r
27 References: <1407591591-25203-1-git-send-email-eg@gaute.vetsj.com>
\r
28 User-Agent: Notmuch/0.18.1+25~gdaf4b6f (http://notmuchmail.org) Emacs/24.3.1
\r
29 (x86_64-unknown-linux-gnu)
\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
31 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
32 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
33 Date: Sat, 09 Aug 2014 16:56:18 +0300
\r
34 Message-ID: <m2ha1ldawt.fsf@guru.guru-group.fi>
\r
36 Content-Type: text/plain
\r
37 X-BeenThere: notmuch@notmuchmail.org
\r
38 X-Mailman-Version: 2.1.13
\r
40 List-Id: "Use and development of the notmuch mail system."
\r
41 <notmuch.notmuchmail.org>
\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
45 List-Post: <mailto:notmuch@notmuchmail.org>
\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
49 X-List-Received-Date: Sat, 09 Aug 2014 13:56:41 -0000
\r
51 On Sat, Aug 09 2014, Gaute Hope <eg@gaute.vetsj.com> wrote:
\r
53 > at some point in python 3.* execfile was removed. per
\r
54 > http://stackoverflow.com/questions/6357361/alternative-to-execfile-in-python-3-2
\r
55 > the execefile has been replaced in the same manner as python 2to3 helper
\r
58 > tested on python 3.4.1 and 2.7.8.
\r
61 Thanks for the patch -- I have use the idea elsewhere with ipython :D
\r
63 Trevor has a patch series which takes care e.g. of this:
\r
65 id:"8cc9dd580ad672527e12f43706f9803b2c8e99d8.1405220724.git.wking@tremily.us"
\r
67 http://article.gmane.org/gmane.mail.notmuch.general/18661
\r
73 > doc/prerst2man.py | 3 ++-
\r
74 > 1 file changed, 2 insertions(+), 1 deletion(-)
\r
76 > diff --git a/doc/prerst2man.py b/doc/prerst2man.py
\r
77 > index 437dea9..3f85c0c 100644
\r
78 > --- a/doc/prerst2man.py
\r
79 > +++ b/doc/prerst2man.py
\r
80 > @@ -10,7 +10,8 @@ outdir = argv[2]
\r
81 > if not isdir(outdir):
\r
82 > makedirs(outdir, 0o755)
\r
84 > -execfile(sourcedir + "/conf.py")
\r
85 > +filename = sourcedir + "/conf.py"
\r
86 > +exec(compile(open(filename, "rb").read(), filename, 'exec'))
\r
89 > def header(file, startdocname, command, description, authors, section):
\r
93 > _______________________________________________
\r
94 > notmuch mailing list
\r
95 > notmuch@notmuchmail.org
\r
96 > http://notmuchmail.org/mailman/listinfo/notmuch
\r