Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0E9F5431FAF for ; Sat, 9 Aug 2014 06:40:32 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OsMxWoRbWExk for ; Sat, 9 Aug 2014 06:40:24 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 6C1B8431FAE for ; Sat, 9 Aug 2014 06:40:24 -0700 (PDT) Received: by mail-la0-f42.google.com with SMTP id pv20so5519937lab.15 for ; Sat, 09 Aug 2014 06:40:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6tPCOEJ9cXFW6Xgd2gv24mvWr/7KFtFsr4Cu/z2wVBI=; b=ggkTSRFInKpviptc32b2vImPaQ9JYVerCZ2bDTuGrSCLVS6ItIrTAN8kAAiu/wlq14 pufF+QhilMG/67U5q9qvKgnhEAwnjlwZ75FgeN8oHh+iJiRvOI1mp69FEU2ZAx3dVHS/ cK7PBsCOutXylBhxfeXQCvpGSy1T7Yx7BLMaHxvRNLsEVGMD0p59BZeTC7JpBe6Jeykc 8Aax6ATUXjtiWWzQ0XE+yVMRNeSL2sY+ONKzSOzgzVvG7XOt1CyGU79d3AmgD18Nb8jZ 0nvNz100rFW700GaFn49CzFPZtQStyn6M0uRYaA6oRtgYy838zvkJX4vL1uEkRMO76Bc qsUA== X-Gm-Message-State: ALoCoQk5T0k56ZlWOTXtiWE5ERwzLcyGjT9MQf113d7DA+LnLktdv1LBUwfS2EfSsq5CMROycaJD X-Received: by 10.112.63.65 with SMTP id e1mr1579528lbs.81.1407591621808; Sat, 09 Aug 2014 06:40:21 -0700 (PDT) Received: from localhost (cD572BF51.dhcp.as2116.net. [81.191.114.213]) by mx.google.com with ESMTPSA id 9sm3102831las.14.2014.08.09.06.40.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Aug 2014 06:40:20 -0700 (PDT) From: Gaute Hope To: notmuch@notmuchmail.org Subject: [PATCH] doc/prerst2man.py: swap execfile with an exec call Date: Sat, 9 Aug 2014 15:39:51 +0200 Message-Id: <1407591591-25203-1-git-send-email-eg@gaute.vetsj.com> X-Mailer: git-send-email 2.0.3 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2014 13:40:32 -0000 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. --- 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