Submitter | Yuya Nishihara |
---|---|
Date | Nov. 16, 2019, 11:59 a.m. |
Message ID | <e4db6b41230a04e20c67.1573905581@mimosa> |
Download | mbox | patch |
Permalink | /patch/43298/ |
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 359202C495; Sat, 16 Nov 2019 10:05:59 -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 8btRIOsfe0qG; Sat, 16 Nov 2019 10:04:48 -0500 (EST) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 04FD82C4FB; Sat, 16 Nov 2019 09:43:58 -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 B29682C495 for <mercurial-devel@mercurial-scm.org>; Sat, 16 Nov 2019 09:43:57 -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 9cHHGEzBDXzb for <mercurial-devel@mercurial-scm.org>; Sat, 16 Nov 2019 09:42:50 -0500 (EST) Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by mercurial-scm.org (Postfix) with ESMTPS id 3DF6F2C496 for <mercurial-devel@mercurial-scm.org>; Sat, 16 Nov 2019 07:00:06 -0500 (EST) Received: by mail-pl1-x642.google.com with SMTP id o9so6589301plk.6 for <mercurial-devel@mercurial-scm.org>; Sat, 16 Nov 2019 04:00:06 -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=BFukXvHNbw7YWUOz/AgNhyd2vQtpROT95r70We+i6Jk=; b=kQHGBycQfMt+W+w95b/gPD+KaChluE52nVThvO3U5sSCjtTM7aPNYA0qRKtL2R2cK3 2bqEQrSC5o0Wjrq0H1TSXmlN1tXLV7f2KC1O3vHp2eU2jlgAtLHputOW1uOA0wPnIxUC hGT8jphtDdJe1BprTCPPw0cx5i6CeyP+CB8XKJZ8GuDa9JJ1rU1GvBgILxeKW5upIxkk WQF4rLuaaY9NarpAaHbPSBMWC+q5VKmtJsqlIOokC03UJlMUPyUSNcnP8VqVtisCzi48 Jl3OGbuHITkld9Dpg6l1pVKcuFau8TmhGCsChh4G0/B9lDdm/0L48YlHjO/9Yt9YjzOx 7KyA== 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=BFukXvHNbw7YWUOz/AgNhyd2vQtpROT95r70We+i6Jk=; b=YT6zBI/8vsGn0/HdSDdpgm5gJW2QRu5eD9uA8Uc3xy0OcaHdj2++1y2beXN3zKUmBT FZFc7sNTt6YuwhKQWVZTQeyg9YO9Hx5s3yea6dwFQdDq1febQYSR8O2ePru+FYBhRBFv kxZmtPbjhBoJ3iVrLRzaw6VCQ4XnNQcDoYTHu+RC510x9/PXaXTVR3Ad/mbeFqpaZ6pa FUSAql8DSZRc5Cxz9CFzAYBUUlb1x0ZkoQfY/4cXNcTN5ZomLBDWz2m2jX+234RUlcum uN8Z9u7Wjjm3WlgsyeJknryBA+7G2UhQ2gUqigOZ4Ue75Zx0tjYOqG5zYPUlOZo4QoAl EAnQ== X-Gm-Message-State: APjAAAV4edUymQebhNClQ2iC4PaFO3Oj79uQi49ncPlBZZYtVo32OClx WQktIRP9BWP7uGJdL6Vr0AwgM6tC X-Google-Smtp-Source: APXvYqz8qQWhBSRl3mR1G3ggHQ7tabswfpPRKSodfsuGjdkWHdlizPOFjvAxkI2ss7TxlNdgDCnhrg== X-Received: by 2002:a17:902:9b86:: with SMTP id y6mr20883048plp.36.1573905605449; Sat, 16 Nov 2019 04:00:05 -0800 (PST) Received: from [127.0.1.1] ([2405:6580:8ce0:4000:7e7a:91ff:fec3:bcc]) by smtp.gmail.com with ESMTPSA id 67sm14414544pjz.27.2019.11.16.04.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2019 04:00:05 -0800 (PST) MIME-Version: 1.0 Subject: [PATCH 5 of 7] typing: suppress error of py2 encoding.strtolocal() and .strfromlocal() X-Mercurial-Node: e4db6b41230a04e20c67d87fc97ff90151369cae X-Mercurial-Series-Index: 5 X-Mercurial-Series-Total: 7 Message-Id: <e4db6b41230a04e20c67.1573905581@mimosa> X-Mercurial-Series-Id: <788e92d3589b8007e47d.1573905577@mimosa> In-Reply-To: <788e92d3589b8007e47d.1573905577@mimosa> References: <788e92d3589b8007e47d.1573905577@mimosa> User-Agent: Mercurial-patchbomb/5.2+238-303bf312d5ed Date: Sat, 16 Nov 2019 20:59:41 +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 - Nov. 16, 2019, 11:59 a.m.
Patch
diff --git a/mercurial/encoding.py b/mercurial/encoding.py --- a/mercurial/encoding.py +++ b/mercurial/encoding.py @@ -268,11 +268,11 @@ else: def strtolocal(s): # type: (str) -> bytes - return s + return s # pytype: disable=bad-return-type def strfromlocal(s): # type: (bytes) -> str - return s + return s # pytype: disable=bad-return-type strmethod = pycompat.identity