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 D797A429E34 for ; Mon, 3 Feb 2014 03:00:44 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] 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 a-MrEWDMVgnl for ; Mon, 3 Feb 2014 03:00:39 -0800 (PST) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by olra.theworths.org (Postfix) with ESMTP id CC19A431FDB for ; Mon, 3 Feb 2014 03:00:38 -0800 (PST) Received: from omta17.westchester.pa.mail.comcast.net ([76.96.62.89]) by qmta03.westchester.pa.mail.comcast.net with comcast id MmuM1n0031vXlb853n0eRM; Mon, 03 Feb 2014 11:00:38 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta17.westchester.pa.mail.comcast.net with comcast id Mn0d1n00B152l3L3dn0dwp; Mon, 03 Feb 2014 11:00:38 +0000 Received: from mjolnir.tremily.us (unknown [192.168.0.140]) by odin.tremily.us (Postfix) with ESMTPS id E2D26FB4D3F; Mon, 3 Feb 2014 03:00:36 -0800 (PST) Received: (nullmailer pid 675 invoked by uid 1000); Mon, 03 Feb 2014 10:59:40 -0000 From: "W. Trevor King" To: notmuch@notmuchmail.org Subject: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring Date: Mon, 3 Feb 2014 02:59:18 -0800 Message-Id: X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1391425238; bh=sAopppKi9y3EMKkYNf/WrY51ATNQEmZ5/rIAK4Runn8=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-Id:MIME-Version:Content-Type; b=Onvo95NSrnTSzqp9z3CMg6ssNnSNWDv55c8JWG2cuBa2OFirSJ5ex4lH0D9VIbTIJ j6L5pvM0QAGivY0/rcPCyqv4ZKk9xnsOtfUtL7f5KfaIae6pnzXyy8sVWdraJ0/j2Y bj5kFmhRwqJ20gaB7pXlOarObAunrupbpduOuvMgloCw1TbL5k1mDLwGJfoKULNL3X 5jCLR+CGQkFMwwmok7kNotY7ABXeyZ2UCQI11MlcLyiykVuxNIg9/amwhxECbLyRBH NO/Tt0x3wtjKcLac7QL/1eRUtn3w/Z7rTXw8mBj0bSuWQk5c9pgl+GGw1xn4rytTYf EuW+tsmysmxqA== 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: Mon, 03 Feb 2014 11:00:45 -0000 I noticed that nmbug-status was written in Python :), but not compatible with Python 3 :(. I started cleaning up a few print statements, but this quickly turned into a more general refactoring. Let me know if this is too much to bite off at once. I tried to keep each patch fairly contained, but the Page / HtmlPage addition is still pretty big. Despite increasing the size of this module by almost 50%, I think my final version is more readable. However, it's always easier to read your own code, so feel free to tell me that this is a step in the completely wrong direction ;). Also anyone with asthetic sensibilities is free to pick nicer colors in the final patch. I'm too partial to the EFF permutation symmetry to be able to pick other colors myself ;). W. Trevor King (17): nmbug-status: Convert to Python-3-compatible print functions nmbug-status: Use email.utils instead of rfc822 nmbug-status: Decode Popen output using the user's locale nmbug-status: Factor config-loading out into read_config nmbug-status: Add metavars for --config and --get-query nmbug-status: Consolidate functions and main code nmbug-status: Don't require write access nmbug-status: Consolidate HTML header printing nmbug-status: Add a Python-3-compatible urllib.parse.quote import nmbug-status: Add Page and HtmlPage for modular rendering nmbug-status: Normalize table HTML indentation nmbug-status: Convert from XHTML 1.0 to HTML 5 nmbug-status: Encode output using the user's locale nmbug-status: Anchor with h3 ids instead of a names nmbug-status: Quote the title when using it as an id nmbug-status: Use and

markup where appropriate nmbug-status: Color threads in HTML output devel/nmbug/nmbug-status | 412 ++++++++++++++++++++++++++++++----------------- 1 file changed, 261 insertions(+), 151 deletions(-) -- 1.8.5.2.8.g0f6c0d1