Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 53 / 9bef86a03736d8ec7ab4a74adf54be5181a3e4
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 F299B431FDD\r
6         for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:44:44 -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
9 X-Spam-Flag: NO\r
10 X-Spam-Score: 0\r
11 X-Spam-Level: \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
14         autolearn=disabled\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 1gv90ey-uyoS for <notmuch@notmuchmail.org>;\r
18         Mon, 10 Feb 2014 10:44:38 -0800 (PST)\r
19 Received: from qmta01.westchester.pa.mail.comcast.net\r
20         (qmta01.westchester.pa.mail.comcast.net [76.96.62.16])\r
21         by olra.theworths.org (Postfix) with ESMTP id 65C7E431FBD\r
22         for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:43:56 -0800 (PST)\r
23 Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74])\r
24         by qmta01.westchester.pa.mail.comcast.net with comcast\r
25         id Qho81n0051c6gX851ijw8j; Mon, 10 Feb 2014 18:43:56 +0000\r
26 Received: from odin.tremily.us ([24.18.63.50])\r
27         by omta23.westchester.pa.mail.comcast.net with comcast\r
28         id Qihv1n00a152l3L3jihw9o; Mon, 10 Feb 2014 18:41:56 +0000\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])\r
30         by odin.tremily.us (Postfix) with ESMTPS id 78CDA10167B1;\r
31         Mon, 10 Feb 2014 10:41:55 -0800 (PST)\r
32 Received: (nullmailer pid 1260 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 08/20] nmbug-status: Consolidate HTML header printing\r
37 Date: Mon, 10 Feb 2014 10:40:29 -0800\r
38 Message-Id:\r
39  <baedd516847f27bec29489eed3dc381dd076c01f.1392056624.git.wking@tremily.us>\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1\r
41 In-Reply-To: <cover.1392056624.git.wking@tremily.us>\r
42 References: <cover.1392056624.git.wking@tremily.us>\r
43 In-Reply-To: <cover.1392056624.git.wking@tremily.us>\r
44 References: <cover.1392056624.git.wking@tremily.us>\r
45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
46         s=q20121106; t=1392057836;\r
47         bh=A5pu3T/sSEWdI5VbSqgXNCMKF5j4y5sZerrdYMH7JY0=;\r
48         h=Received:Received:Received:Received:From:To:Subject:Date:\r
49         Message-Id;\r
50         b=ZIB7CPWyjOjE93+CyoTaNBEjL7Y2+UXH8hblxTLfkMkFqJS+tL6MhEJXExnQoYRj5\r
51         GvM14sM9ogu2i+iSwqjW7s5rdhP+8HY07d9Etw0rT1s+8zuaTO3rtu5zByFdgC0ZJS\r
52         9JdaaTX23zNNgjGf4Oz6bkPyEGyJBr2ZTAoUOVU8dADGY53/Nu8Yml/Avmz8plOoTm\r
53         fidtisUmIdZx/vZP6hdSZrRYGQEVs22hfxq1K4L7V3S2cu9YJ57kimAblV7Kaac1vE\r
54         WQHxHAdW+QTSov3NVllEjAW71zvM9UzwRplDF903vzjswQ10Ly4M4Ahrl47rvnoaIN\r
55         yHlmtxu7HliKg==\r
56 Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Mon, 10 Feb 2014 18:44:45 -0000\r
70 \r
71 Make this all one big string, using '...{date}...'.format(date=...) to\r
72 inject the date [1].  This syntax was added in Python 2.6, and is\r
73 preferred to %-formatting in Python 3 [1].\r
74 \r
75 [1]: http://docs.python.org/2/library/stdtypes.html#str.format\r
76 ---\r
77  devel/nmbug/nmbug-status | 13 ++++++-------\r
78  1 file changed, 6 insertions(+), 7 deletions(-)\r
79 \r
80 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status\r
81 index be3e28e..3aa83b6 100755\r
82 --- a/devel/nmbug/nmbug-status\r
83 +++ b/devel/nmbug/nmbug-status\r
84 @@ -190,13 +190,12 @@ if output_format == 'html':\r
85  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
86  <title>Notmuch Patches</title>\r
87  </head>\r
88 -<body>''')\r
89 -    print('<h2>Notmuch Patches</h2>')\r
90 -    print('Generated: %s<br />' % datetime.datetime.utcnow().date())\r
91 -    print('For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>')\r
92 -\r
93 -    print('<h3>Views</h3>')\r
94 -    print('<ul>')\r
95 +<body>\r
96 +<h2>Notmuch Patches</h2>\r
97 +Generated: {date}<br />\r
98 +For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>\r
99 +<h3>Views</h3>\r
100 +<ul>'''.format(date=datetime.datetime.utcnow().date()))\r
101      for view in config['views']:\r
102          print('<li><a href="#%(title)s">%(title)s</a></li>' % view)\r
103      print('</ul>')\r
104 -- \r
105 1.8.5.2.8.g0f6c0d1\r
106 \r