Submitter | Yuya Nishihara |
---|---|
Date | March 17, 2017, 3:25 p.m. |
Message ID | <49922515f01eae376dcc.1489764348@mimosa> |
Download | mbox | patch |
Permalink | /patch/19421/ |
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 C959C2C219; Fri, 17 Mar 2017 11:26:17 -0400 (EDT) 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 nKGL1yo-Wg_P; Fri, 17 Mar 2017 11:26:17 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id A60102C227; Fri, 17 Mar 2017 11:26:14 -0400 (EDT) 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 2E1CF2C221 for <mercurial-devel@mercurial-scm.org>; Fri, 17 Mar 2017 11:26:12 -0400 (EDT) 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 tI5J00UOoJjA for <mercurial-devel@mercurial-scm.org>; Fri, 17 Mar 2017 11:26:11 -0400 (EDT) Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com [IPv6:2607:f8b0:400e:c05::234]) by mercurial-scm.org (Postfix) with ESMTPS id 76DA22C20C for <mercurial-devel@mercurial-scm.org>; Fri, 17 Mar 2017 11:26:11 -0400 (EDT) Received: by mail-pg0-x234.google.com with SMTP id b129so43485602pgc.2 for <mercurial-devel@mercurial-scm.org>; Fri, 17 Mar 2017 08:26:11 -0700 (PDT) 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=PQtae8I9bwkI6Q1sp3ajjrPT/RcFqsbn133/iXM0Iko=; b=TCLJYPyQsGblui6/kLLKhGUKsJ6UVnWXIURx+KZOhMZAUdFhlMaKiKdVICFqTZr3Hr n04YC188s067I0JGMl6aSvlj21K9qjcg/uLB/gsKptmBJKCUjdQ1POC8wU2Kt269+sIT ENVzXs7w0rgoS5cRuRZnIBQ8wBGCbX7WbcibGr/1JMUq/y51r4PUY8xH9WgmIJT59g0T PXHdYpQN2VohzFEZZ9MadXK+PiOjNN5vfHa9WD1RoHOSoP9aiNtjL5pt76ZPAP1kApZf dtcl7+kvGa16PYdZLVJSHGSnv3yQKozTmiMuROZd0RSz3zciIyQqipAeEL68HQMbP9lL 5+Vw== 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=PQtae8I9bwkI6Q1sp3ajjrPT/RcFqsbn133/iXM0Iko=; b=dXljEj7xqCqCAHlBvy10PsipVQjAaPHEp/Sx5qub7EoBmlGSRcgLjED+qZEeL9n27X SQ7VpcUdoPwai/3B51g2WNm1BA45fuiwPSJgOXNcB5MzAA+oTqMY7IUqvhSo+m/w9Y6V YkiB6TL5E9q2kYoNmhK66hwfgqB2+G+qsuW6ZA6DK5Z0YDg9EXXZLbOpfCzIgK6R60rm WaLGoc0QV5xKo6wWyLMdn11GzOuD7R7UV1xlNziIhtaWzW8i68LhclRbCghDeUSG7iBd WSxpBbznFFXrppItzU+6xHABTtX10ZheEuNjrxT2tgClaLKhq++cm74UT1X0iH3TE5F0 Ny+Q== X-Gm-Message-State: AFeK/H1hlaGiCI++EDnH3cE1Gg0y3DKqbyKoII8m3a3vtwQEYVphjhxpv2d6Cz/EjQks+Q== X-Received: by 10.99.127.29 with SMTP id a29mr652555pgd.11.1489764370992; Fri, 17 Mar 2017 08:26:10 -0700 (PDT) Received: from [127.0.1.1] (p6e424978.tkyea126.ap.so-net.ne.jp. [110.66.73.120]) by smtp.gmail.com with ESMTPSA id t67sm17536958pfd.76.2017.03.17.08.26.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Mar 2017 08:26:09 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 2 of 4] py3: call codecs.escape_decode() directly X-Mercurial-Node: 49922515f01eae376dcc9af7b04d450d301e4782 X-Mercurial-Series-Index: 2 X-Mercurial-Series-Total: 4 Message-Id: <49922515f01eae376dcc.1489764348@mimosa> X-Mercurial-Series-Id: <fa032607ed52a0ba605b.1489764347@mimosa> In-Reply-To: <fa032607ed52a0ba605b.1489764347@mimosa> References: <fa032607ed52a0ba605b.1489764347@mimosa> User-Agent: Mercurial-patchbomb/4.1.1+569-a5bad127128d Date: Sat, 18 Mar 2017 00:25:48 +0900 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 17, 2017, 3:25 p.m.
Patch
diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -2138,7 +2138,7 @@ def escapestr(s): return codecs.escape_encode(s)[0] def unescapestr(s): - return s.decode('string_escape') + return codecs.escape_decode(s)[0] def uirepr(s): # Avoid double backslash in Windows path repr()