1 Return-Path: <wking@tremily.us>
\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 1A5F4431FBD
\r
6 for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:44:51 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
13 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id Qx42ZzkYSMSg for <notmuch@notmuchmail.org>;
\r
18 Mon, 10 Feb 2014 10:44:45 -0800 (PST)
\r
19 Received: from qmta13.westchester.pa.mail.comcast.net
\r
20 (qmta13.westchester.pa.mail.comcast.net [76.96.59.243])
\r
21 by olra.theworths.org (Postfix) with ESMTP id 4FA49431FDF
\r
22 for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:43:57 -0800 (PST)
\r
23 Received: from omta11.westchester.pa.mail.comcast.net ([76.96.62.36])
\r
24 by qmta13.westchester.pa.mail.comcast.net with comcast
\r
25 id Qcvh1n0010mv7h05Dijx9h; Mon, 10 Feb 2014 18:43:57 +0000
\r
26 Received: from odin.tremily.us ([24.18.63.50])
\r
27 by omta11.westchester.pa.mail.comcast.net with comcast
\r
28 id Qihw1n00B152l3L3XihwvR; Mon, 10 Feb 2014 18:41:57 +0000
\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])
\r
30 by odin.tremily.us (Postfix) with ESMTPS id EE86110167B3;
\r
31 Mon, 10 Feb 2014 10:41:55 -0800 (PST)
\r
32 Received: (nullmailer pid 1263 invoked by uid 1000);
\r
33 Mon, 10 Feb 2014 18:40:45 -0000
\r
34 From: "W. Trevor King" <wking@tremily.us>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH v2 09/20] nmbug-status: Add a Python-3-compatible
\r
37 urllib.parse.quote import
\r
38 Date: Mon, 10 Feb 2014 10:40:30 -0800
\r
40 <80d27fa376ab1c214396c24fb0268a96293a4d87.1392056624.git.wking@tremily.us>
\r
41 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1
\r
42 In-Reply-To: <cover.1392056624.git.wking@tremily.us>
\r
43 References: <cover.1392056624.git.wking@tremily.us>
\r
44 In-Reply-To: <cover.1392056624.git.wking@tremily.us>
\r
45 References: <cover.1392056624.git.wking@tremily.us>
\r
46 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
\r
47 s=q20121106; t=1392057837;
\r
48 bh=+RYjUyYKWkd/LXfnYi2JOZZTp5ecx1cOBgcyXSpm2TU=;
\r
49 h=Received:Received:Received:Received:From:To:Subject:Date:
\r
51 b=ES/ddDd5OLdo3lLUMCYGisRcMX1gPnQQpQP9vZrkzL7mOpqG1qQZXNYXuCCXIM16U
\r
52 ximhdPlnokuZMY+Sf80JYlDrnKRB1laZvEDrSLRkwjKxIdxqe7vxgkIbCRbACJo7Qs
\r
53 pGSolxPtRcDmE3GaH76U3ujF4z2ijJcIo2/KNAICW8dLJBZuk4rD8TBsjeveVnCfYr
\r
54 luByPyxf2qVyL3DqyvUHZdAkR1VKutHkHL9279IUaNRFRczv9QsscfnuKhZqtYontv
\r
55 RdRLmgwAMi2tcCyQXXN3cAfVxuGbWUBG21bv6ZAHjPSrMJKws+9/VFOIswZRTn3kB+
\r
57 Cc: Tomi Ollila <tomi.ollila@iki.fi>
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.13
\r
61 List-Id: "Use and development of the notmuch mail system."
\r
62 <notmuch.notmuchmail.org>
\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
66 List-Post: <mailto:notmuch@notmuchmail.org>
\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
70 X-List-Received-Date: Mon, 10 Feb 2014 18:44:51 -0000
\r
72 Python 2's urllib.quote [1] has moved to urllib.parse.quote in Python
\r
75 [1]: http://docs.python.org/2/library/urllib.html#urllib.quote
\r
76 [2]: http://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote
\r
78 devel/nmbug/nmbug-status | 9 ++++++---
\r
79 1 file changed, 6 insertions(+), 3 deletions(-)
\r
81 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
\r
82 index 3aa83b6..22b6b10 100755
\r
83 --- a/devel/nmbug/nmbug-status
\r
84 +++ b/devel/nmbug/nmbug-status
\r
85 @@ -12,7 +12,10 @@ import codecs
\r
91 + from urllib.parse import quote
\r
92 +except ImportError: # Python 2
\r
93 + from urllib import quote
\r
97 @@ -124,8 +127,8 @@ def print_view(database, title, query, comment,
\r
99 if output_format == 'html':
\r
101 - out['subject'] = '<a href="http://mid.gmane.org/%s">%s</a>' \
\r
102 - % (urllib.quote(mid), out['subject'])
\r
103 + out['subject'] = '<a href="http://mid.gmane.org/%s">%s</a>' % (
\r
104 + quote(mid), out['subject'])
\r
106 lines.append(' <tr><td>%s' % out['date'])
\r
107 lines.append('</td><td>%s' % out['id'])
\r