[PATCH] devel/release-checks.sh: made python version check work with python 3
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 2 Aug 2015 09:48:25 +0000 (12:48 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:14 +0000 (14:49 -0700)
c1/0d978130f80e7b541b8c653c2f3c76ffa132fb [new file with mode: 0644]

diff --git a/c1/0d978130f80e7b541b8c653c2f3c76ffa132fb b/c1/0d978130f80e7b541b8c653c2f3c76ffa132fb
new file mode 100644 (file)
index 0000000..fa4e933
--- /dev/null
@@ -0,0 +1,66 @@
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 1242B6DE19D0\r
+ for <notmuch@notmuchmail.org>; Sun,  2 Aug 2015 02:48:46 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.32\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.32 tagged_above=-999 required=5 tests=[AWL=0.860,\r
+ RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id w5iPAa9MyXSL for <notmuch@notmuchmail.org>;\r
+ Sun,  2 Aug 2015 02:48:43 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 4D7476DE1905\r
+ for <notmuch@notmuchmail.org>; Sun,  2 Aug 2015 02:48:42 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 7D0AF10009D; Sun,  2 Aug 2015 12:48:27 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] devel/release-checks.sh: made python version check work with\r
+ python 3\r
+Date: Sun,  2 Aug 2015 12:48:25 +0300\r
+Message-Id: <1438508905-10955-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 2.0.0\r
+Cc: tomi.ollila@iki.fi\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Sun, 02 Aug 2015 09:48:46 -0000\r
+\r
+This trivial change consists of just putting print() argument in\r
+parentheses.\r
+---\r
+ devel/release-checks.sh | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/devel/release-checks.sh b/devel/release-checks.sh\r
+index efd0b3441f2e..bf0d68a444b6 100755\r
+--- a/devel/release-checks.sh\r
++++ b/devel/release-checks.sh\r
+@@ -141,7 +141,7 @@ else\r
+ fi\r
\r
+ echo -n "Checking that python bindings version is $VERSION... "\r
+-py_version=`python -c "with open('$PV_FILE') as vf: exec(vf.read()); print __VERSION__"`\r
++py_version=`python -c "with open('$PV_FILE') as vf: exec(vf.read()); print(__VERSION__)"`\r
+ if [ "$py_version" = "$VERSION" ]\r
+ then\r
+       echo Yes.\r
+-- \r
+2.0.0\r
+\r