--- /dev/null
+Return-Path: <eg@gaute.vetsj.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 0E9F5431FAF\r
+ for <notmuch@notmuchmail.org>; Sat, 9 Aug 2014 06:40:32 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id OsMxWoRbWExk for <notmuch@notmuchmail.org>;\r
+ Sat, 9 Aug 2014 06:40:24 -0700 (PDT)\r
+Received: from mail-la0-f42.google.com (mail-la0-f42.google.com\r
+ [209.85.215.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 6C1B8431FAE\r
+ for <notmuch@notmuchmail.org>; Sat, 9 Aug 2014 06:40:24 -0700 (PDT)\r
+Received: by mail-la0-f42.google.com with SMTP id pv20so5519937lab.15\r
+ for <notmuch@notmuchmail.org>; Sat, 09 Aug 2014 06:40:22 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=6tPCOEJ9cXFW6Xgd2gv24mvWr/7KFtFsr4Cu/z2wVBI=;\r
+ b=ggkTSRFInKpviptc32b2vImPaQ9JYVerCZ2bDTuGrSCLVS6ItIrTAN8kAAiu/wlq14\r
+ pufF+QhilMG/67U5q9qvKgnhEAwnjlwZ75FgeN8oHh+iJiRvOI1mp69FEU2ZAx3dVHS/\r
+ cK7PBsCOutXylBhxfeXQCvpGSy1T7Yx7BLMaHxvRNLsEVGMD0p59BZeTC7JpBe6Jeykc\r
+ 8Aax6ATUXjtiWWzQ0XE+yVMRNeSL2sY+ONKzSOzgzVvG7XOt1CyGU79d3AmgD18Nb8jZ\r
+ 0nvNz100rFW700GaFn49CzFPZtQStyn6M0uRYaA6oRtgYy838zvkJX4vL1uEkRMO76Bc\r
+ qsUA==\r
+X-Gm-Message-State:\r
+ ALoCoQk5T0k56ZlWOTXtiWE5ERwzLcyGjT9MQf113d7DA+LnLktdv1LBUwfS2EfSsq5CMROycaJD\r
+X-Received: by 10.112.63.65 with SMTP id e1mr1579528lbs.81.1407591621808;\r
+ Sat, 09 Aug 2014 06:40:21 -0700 (PDT)\r
+Received: from localhost (cD572BF51.dhcp.as2116.net. [81.191.114.213])\r
+ by mx.google.com with ESMTPSA id 9sm3102831las.14.2014.08.09.06.40.20\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 09 Aug 2014 06:40:20 -0700 (PDT)\r
+From: Gaute Hope <eg@gaute.vetsj.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] doc/prerst2man.py: swap execfile with an exec call\r
+Date: Sat, 9 Aug 2014 15:39:51 +0200\r
+Message-Id: <1407591591-25203-1-git-send-email-eg@gaute.vetsj.com>\r
+X-Mailer: git-send-email 2.0.3\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 09 Aug 2014 13:40:32 -0000\r
+\r
+at some point in python 3.* execfile was removed. per\r
+http://stackoverflow.com/questions/6357361/alternative-to-execfile-in-python-3-2\r
+the execefile has been replaced in the same manner as python 2to3 helper\r
+script would do.\r
+\r
+tested on python 3.4.1 and 2.7.8.\r
+---\r
+ doc/prerst2man.py | 3 ++-\r
+ 1 file changed, 2 insertions(+), 1 deletion(-)\r
+\r
+diff --git a/doc/prerst2man.py b/doc/prerst2man.py\r
+index 437dea9..3f85c0c 100644\r
+--- a/doc/prerst2man.py\r
++++ b/doc/prerst2man.py\r
+@@ -10,7 +10,8 @@ outdir = argv[2]\r
+ if not isdir(outdir):\r
+ makedirs(outdir, 0o755)\r
+ \r
+-execfile(sourcedir + "/conf.py")\r
++filename = sourcedir + "/conf.py"\r
++exec(compile(open(filename, "rb").read(), filename, 'exec'))\r
+ \r
+ \r
+ def header(file, startdocname, command, description, authors, section):\r
+-- \r
+2.0.3\r
+\r