Submitter | Matt Harbison |
---|---|
Date | Feb. 6, 2019, 2:35 a.m. |
Message ID | <1a4bd7696b7e12673ddc.1549420547@Envy> |
Download | mbox | patch |
Permalink | /patch/38471/ |
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 95A8D2C1C8; Tue, 5 Feb 2019 21:42:26 -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 rbAYm1oDyCUm; Tue, 5 Feb 2019 21:41:58 -0500 (EST) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id C3C5A2C398; Tue, 5 Feb 2019 21:36:43 -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 22F982C195 for <mercurial-devel@mercurial-scm.org>; Tue, 5 Feb 2019 21:36:42 -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 iGkDlRahEl-i for <mercurial-devel@mercurial-scm.org>; Tue, 5 Feb 2019 21:36:15 -0500 (EST) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by mercurial-scm.org (Postfix) with ESMTPS id 6D9A72C1C8 for <mercurial-devel@mercurial-scm.org>; Tue, 5 Feb 2019 21:35:50 -0500 (EST) Received: by mail-qt1-x82d.google.com with SMTP id v11so6394132qtc.2 for <mercurial-devel@mercurial-scm.org>; Tue, 05 Feb 2019 18:35:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=tclR2rzx+1LiXWez4doVrGk3GTMGJq8VLxXLda4w4ks=; b=D26qdUeloeSj6RVgZpCFrs1ErvrUnkMpaJZEiTFFym9Otc5OAY1Z8oEdCYrn5d1aQV RX2ADwVzVAZEJ5gMwr5OlBbcclZ1mkwIvlAWchGySHujtWJDXLI40kOLY+83orYz5G9N o2peSGv2ZRIc3hBQ5ljYNOOump5QKPgrfgUZMWg7xS7H1MvzGeGbNksPkPyCirvrRLFE f+irP8suPWGH2GlMPJrOP+kiCuktAQZhSr1T1qd56i1v9LtRNc+ZwHmPSIpiAzMKJA9l OUh5tFmF9nbeEQKF9w6m1TlRv4ZNUU3N73irDu+QtqlCJROCN85TPXi6YV/eRnJ/JnC1 z2dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:subject :message-id:in-reply-to:references:user-agent:date:from:to; bh=tclR2rzx+1LiXWez4doVrGk3GTMGJq8VLxXLda4w4ks=; b=rJB39MVl3N0IriPaMdLpf/WyacIX4gOfCPcadGQVAgjTF3D2Z4wNNuW6vNHteqhJBv D/DzUISXbDbOnIuU3GNUvEaR4GBh4OvRt4PnK/ZOHdwDmCog2z7yO4sI1hvd0CZGpdCN XWI15cAE0UEk5jSeBQzoutMx2Wwd5vHEGbeiuvyp6pHeM/GUfqLk+9CawRxe+xjs6s+y ujIn6oaQ9cgNAwB1/Lnewicw2u/rRcERyzUIa6URxI2cJPL10PYMo4HCE5hL2RMHW3Q7 y1DhIVfC2x3WIWEb6y+KCXmhHjXapi0j/DqYjbRDmcdiHcgLHE592DxS0DKmXHzn/9Uq /uHA== X-Gm-Message-State: AHQUAuYE0aLmALk30aykzql/9/AOPQYv2/GEsWixbeGMFLgsAJcXsmcn kiTZgWu0K8I9JH2Xi2/GkxdwjK5j X-Google-Smtp-Source: AHgI3Iahd70OHEYZaNw9bhhi13ZeneA2bbXV1PVfYe+EOZB/a6U/ZvwsnrFU4FmJjOp3ByzEH6WcJA== X-Received: by 2002:ac8:6798:: with SMTP id b24mr4218424qtp.375.1549420549128; Tue, 05 Feb 2019 18:35:49 -0800 (PST) Received: from [10.8.8.218] ([185.217.69.138]) by smtp.gmail.com with ESMTPSA id e186sm17114729qkb.32.2019.02.05.18.35.48 for <mercurial-devel@mercurial-scm.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 18:35:48 -0800 (PST) MIME-Version: 1.0 Subject: [PATCH 4 of 6] wsgiheaders: make sure __repr__() returns a string X-Mercurial-Node: 1a4bd7696b7e12673ddc46733babd15151f00e05 X-Mercurial-Series-Index: 4 X-Mercurial-Series-Total: 6 Message-Id: <1a4bd7696b7e12673ddc.1549420547@Envy> X-Mercurial-Series-Id: <e68578660449146a4b77.1549420544@Envy> In-Reply-To: <e68578660449146a4b77.1549420544@Envy> References: <e68578660449146a4b77.1549420544@Envy> User-Agent: Mercurial-patchbomb/4.8.1 Date: Tue, 05 Feb 2019 21:35:47 -0500 From: Matt Harbison <mharbison72@gmail.com> 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
Matt Harbison - Feb. 6, 2019, 2:35 a.m.
Patch
diff --git a/mercurial/hgweb/wsgiheaders.py b/mercurial/hgweb/wsgiheaders.py --- a/mercurial/hgweb/wsgiheaders.py +++ b/mercurial/hgweb/wsgiheaders.py @@ -127,7 +127,7 @@ class Headers(object): return self._headers[:] def __repr__(self): - return "%s(%r)" % (self.__class__.__name__, self._headers) + return r"%s(%r)" % (self.__class__.__name__, self._headers) def __str__(self): """str() returns the formatted headers, complete with end line,