Submitter | Yuya Nishihara |
---|---|
Date | March 1, 2018, 2:17 p.m. |
Message ID | <4c40aaa3fe1cdee62898.1519913829@mimosa> |
Download | mbox | patch |
Permalink | /patch/28549/ |
State | Accepted |
Headers | show
Return-Path: <mercurial-devel-bounces@mercurial-scm.org> X-Original-To: patchwork@mercurial-scm.org Delivered-To: patchwork@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id 5959B2C29A; Thu, 1 Mar 2018 09:17:22 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hefl_lRnqmez; Thu, 1 Mar 2018 09:17:22 -0500 (EST) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id E0D132C2BA; Thu, 1 Mar 2018 09:17:20 -0500 (EST) X-Original-To: mercurial-devel@mercurial-scm.org Delivered-To: mercurial-devel@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id 0DAC52C1D6 for <mercurial-devel@mercurial-scm.org>; Thu, 1 Mar 2018 09:17:19 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SGvelpr21KoJ for <mercurial-devel@mercurial-scm.org>; Thu, 1 Mar 2018 09:17:18 -0500 (EST) Received: from mail-wr0-x22c.google.com (mail-wr0-x22c.google.com [IPv6:2a00:1450:400c:c0c::22c]) by mercurial-scm.org (Postfix) with ESMTPS id 6E8F22C1CC for <mercurial-devel@mercurial-scm.org>; Thu, 1 Mar 2018 09:17:17 -0500 (EST) Received: by mail-wr0-x22c.google.com with SMTP id o76so6443931wrb.7 for <mercurial-devel@mercurial-scm.org>; Thu, 01 Mar 2018 06:17:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=HSnHE8t6hRy8amPw2BwmbFEFARAFiBQA+ykmd808ggQ=; b=nPMbQDF0mEsxbFbWPftdH0QVltnr9yazBhDxHvEAlpzr0jF7BSP8gnLsewsePsPi/u pwuP/OXqWuGe6TcTsCJU7rg8xmwhbhuN1eFzS5i91Hrl71JLIXh5faZCikAOpQs9k0Uh jqDI+8BT/4YEdqoebCmiKPYi2eEMNt5ijQZ4HCPUfcw2Fvq68Jy523nFM3IUvyqvCqoK WJHW4E91zwWN05x6Nub9qiVI3sJxjkFb9GpxRAv65l9iXbiuCv49zVWzCJ4fJ+Pej3Dv JBs8YfjlPpxIKMB8wf5fFHv6akE2aWLYJyH66bCg0KWuNjpHQKszLy1VzKJb+/p6U3BM haIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :subject:message-id:in-reply-to:references:user-agent:date:from:to; bh=HSnHE8t6hRy8amPw2BwmbFEFARAFiBQA+ykmd808ggQ=; b=ua0ygU4LuafamI1w1UM6tgJMyVedezJSMfYGJVe1G1BhjW6PKj7N2xsgv9d4bSOZaN cJWsjUpmJ9U6uqvl4luLQe11yRYHM9o6hlG8LKBkAiC7168NcVku8xFhdP1ZJ3y/Le/p rJZdavKpTv22gllgj4mb+SzxU+SOEcJv9pesdwXpHuT80xs5T6LtFbp0zPNQofR0jyHq ysyHzgYI1ZC9sFmRVjNE4UHVF7/IyWC6DG7jzXQz/njX34rsVQ35nATwg4Ey7PSBQnuE 5DfjDw20UPRTP9q0sqdTpBOnAepp2DekrYoKhi3rBwOKiNR56ETGKzy22g9XXVaV5Qvh c3YQ== X-Gm-Message-State: APf1xPAUYKyo77jDUkO9tUq/M3Ql6FLCk8eDBo9UVc9aVy7N1X5DIY6S /wcUygyRKQrURR9cffFEGKCwzYXv X-Google-Smtp-Source: AG47ELv+Yh8a9qZhnrOX6o7l5Rz/BX2CsN/2EdyXMv39RvQbEcPCyciB+jD+xpxnC/7rsp17wyDe0w== X-Received: by 10.223.199.137 with SMTP id l9mr2094077wrg.6.1519913836191; Thu, 01 Mar 2018 06:17:16 -0800 (PST) Received: from [127.0.1.1] ([38.111.11.11]) by smtp.gmail.com with ESMTPSA id r128sm4200267wmf.37.2018.03.01.06.17.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 06:17:15 -0800 (PST) MIME-Version: 1.0 Subject: [PATCH 2 of 8] py3: make regexp literal bytes in templatefilters.py X-Mercurial-Node: 4c40aaa3fe1cdee62898dcd43840a070b76eb79b X-Mercurial-Series-Index: 2 X-Mercurial-Series-Total: 8 Message-Id: <4c40aaa3fe1cdee62898.1519913829@mimosa> X-Mercurial-Series-Id: <905fd8fbfd54838f8e07.1519913828@mimosa> In-Reply-To: <905fd8fbfd54838f8e07.1519913828@mimosa> References: <905fd8fbfd54838f8e07.1519913828@mimosa> User-Agent: Mercurial-patchbomb/4.5+624-e46b24582fa0 Date: Thu, 01 Mar 2018 09:17:09 -0500 From: Yuya Nishihara <yuya@tcha.org> To: mercurial-devel@mercurial-scm.org X-BeenThere: mercurial-devel@mercurial-scm.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <mercurial-devel.mercurial-scm.org> List-Unsubscribe: <https://www.mercurial-scm.org/mailman/options/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=unsubscribe> List-Archive: <http://www.mercurial-scm.org/pipermail/mercurial-devel/> List-Post: <mailto:mercurial-devel@mercurial-scm.org> List-Help: <mailto:mercurial-devel-request@mercurial-scm.org?subject=help> List-Subscribe: <https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: mercurial-devel-bounces@mercurial-scm.org Sender: "Mercurial-devel" <mercurial-devel-bounces@mercurial-scm.org> |
Comments
Yuya Nishihara - March 1, 2018, 2:17 p.m.
Patch
diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py --- a/mercurial/templatefilters.py +++ b/mercurial/templatefilters.py @@ -145,7 +145,7 @@ def fill(text, width, initindent='', han global para_re, space_re if para_re is None: para_re = re.compile('(\n\n|\n\\s*[-*]\\s*)', re.M) - space_re = re.compile(r' +') + space_re = re.compile(br' +') def findparas(): start = 0