1 Return-Path: <eg@gaute.vetsj.com>
\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 0E9F5431FAF
\r
6 for <notmuch@notmuchmail.org>; Sat, 9 Aug 2014 06:40:32 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\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 OsMxWoRbWExk for <notmuch@notmuchmail.org>;
\r
16 Sat, 9 Aug 2014 06:40:24 -0700 (PDT)
\r
17 Received: from mail-la0-f42.google.com (mail-la0-f42.google.com
\r
18 [209.85.215.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 6C1B8431FAE
\r
21 for <notmuch@notmuchmail.org>; Sat, 9 Aug 2014 06:40:24 -0700 (PDT)
\r
22 Received: by mail-la0-f42.google.com with SMTP id pv20so5519937lab.15
\r
23 for <notmuch@notmuchmail.org>; Sat, 09 Aug 2014 06:40:22 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=1e100.net; s=20130820;
\r
26 h=x-gm-message-state:from:to:cc:subject:date:message-id;
\r
27 bh=6tPCOEJ9cXFW6Xgd2gv24mvWr/7KFtFsr4Cu/z2wVBI=;
\r
28 b=ggkTSRFInKpviptc32b2vImPaQ9JYVerCZ2bDTuGrSCLVS6ItIrTAN8kAAiu/wlq14
\r
29 pufF+QhilMG/67U5q9qvKgnhEAwnjlwZ75FgeN8oHh+iJiRvOI1mp69FEU2ZAx3dVHS/
\r
30 cK7PBsCOutXylBhxfeXQCvpGSy1T7Yx7BLMaHxvRNLsEVGMD0p59BZeTC7JpBe6Jeykc
\r
31 8Aax6ATUXjtiWWzQ0XE+yVMRNeSL2sY+ONKzSOzgzVvG7XOt1CyGU79d3AmgD18Nb8jZ
\r
32 0nvNz100rFW700GaFn49CzFPZtQStyn6M0uRYaA6oRtgYy838zvkJX4vL1uEkRMO76Bc
\r
35 ALoCoQk5T0k56ZlWOTXtiWE5ERwzLcyGjT9MQf113d7DA+LnLktdv1LBUwfS2EfSsq5CMROycaJD
\r
36 X-Received: by 10.112.63.65 with SMTP id e1mr1579528lbs.81.1407591621808;
\r
37 Sat, 09 Aug 2014 06:40:21 -0700 (PDT)
\r
38 Received: from localhost (cD572BF51.dhcp.as2116.net. [81.191.114.213])
\r
39 by mx.google.com with ESMTPSA id 9sm3102831las.14.2014.08.09.06.40.20
\r
40 for <multiple recipients>
\r
41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
42 Sat, 09 Aug 2014 06:40:20 -0700 (PDT)
\r
43 From: Gaute Hope <eg@gaute.vetsj.com>
\r
44 To: notmuch@notmuchmail.org
\r
45 Subject: [PATCH] doc/prerst2man.py: swap execfile with an exec call
\r
46 Date: Sat, 9 Aug 2014 15:39:51 +0200
\r
47 Message-Id: <1407591591-25203-1-git-send-email-eg@gaute.vetsj.com>
\r
48 X-Mailer: git-send-email 2.0.3
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Sat, 09 Aug 2014 13:40:32 -0000
\r
63 at some point in python 3.* execfile was removed. per
\r
64 http://stackoverflow.com/questions/6357361/alternative-to-execfile-in-python-3-2
\r
65 the execefile has been replaced in the same manner as python 2to3 helper
\r
68 tested on python 3.4.1 and 2.7.8.
\r
70 doc/prerst2man.py | 3 ++-
\r
71 1 file changed, 2 insertions(+), 1 deletion(-)
\r
73 diff --git a/doc/prerst2man.py b/doc/prerst2man.py
\r
74 index 437dea9..3f85c0c 100644
\r
75 --- a/doc/prerst2man.py
\r
76 +++ b/doc/prerst2man.py
\r
77 @@ -10,7 +10,8 @@ outdir = argv[2]
\r
78 if not isdir(outdir):
\r
79 makedirs(outdir, 0o755)
\r
81 -execfile(sourcedir + "/conf.py")
\r
82 +filename = sourcedir + "/conf.py"
\r
83 +exec(compile(open(filename, "rb").read(), filename, 'exec'))
\r
86 def header(file, startdocname, command, description, authors, section):
\r