Submitter | Pulkit Goyal |
---|---|
Date | June 23, 2017, 7:54 p.m. |
Message ID | <98d32035dd1031198057.1498247699@workspace> |
Download | mbox | patch |
Permalink | /patch/21648/ |
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 5185A2C26C; Fri, 23 Jun 2017 15:57:47 -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 pwYPwchOeQFq; Fri, 23 Jun 2017 15:57:47 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 1D2692C28F; Fri, 23 Jun 2017 15:57:44 -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 811312C1CC for <mercurial-devel@mercurial-scm.org>; Fri, 23 Jun 2017 15:57:41 -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 bgBLCPlAi6wx for <mercurial-devel@mercurial-scm.org>; Fri, 23 Jun 2017 15:57:41 -0400 (EDT) Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com [IPv6:2607:f8b0:400e:c00::235]) by mercurial-scm.org (Postfix) with ESMTPS id C0CE92C26C for <mercurial-devel@mercurial-scm.org>; Fri, 23 Jun 2017 15:57:40 -0400 (EDT) Received: by mail-pf0-x235.google.com with SMTP id c73so27860985pfk.2 for <mercurial-devel@mercurial-scm.org>; Fri, 23 Jun 2017 12:57:40 -0700 (PDT) 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=l0hWHO+rQpDAzOS71+MDAhO/SRKnM/OO1vk5k8gnnB8=; b=ryRulhfsssZkmOeE0gbdBrOfwkLPn4PTMmoBV3F6Ano3O/4a4NYEVVQPQ4JEXXEH/2 npt0oM0x6RRg83z7gBJ2G+yzEq+6FWbYqb6pHJsJpuKjFZx1Xpa9cii24YHoJENTvGxP dUk0bVBAgbh1zhy8rgHRa+D3LYxQNphPZS5+qBm7CFVoeGk+1VM2VQOlbExaV7Ts1cTl 2wy1IOcLss07fFvwjZt+qdUzBRt9T5w7lk8OD/0S8n9PLSjP2eMIImDGdSIVEpHfDPp+ 36kP2Ozw/hyBdogaTLtprz5wqO8+goDP7RY57IfZXPZPaCgct/GWfmMuaZt6jWW9pYfr wz4Q== 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=l0hWHO+rQpDAzOS71+MDAhO/SRKnM/OO1vk5k8gnnB8=; b=c6sogFH0fJ6Y4Jx8fWCkZaucCR5bNWG1WWS6PUzsgheoSyQulvdoIpkdp8aTg0w1Yi DkA2kRs3GCIZblWUQ/rXVDNv2TgiXDTJiOyg5Rs/B/p0INMeuGQlEg8b/UsUuK3NTy+4 lqqcDRzb6bDIIeqy64EB/3yZwDa5Jml+gIVfPDHsSNacqcePzeKVHI0O0An3wYVDmnEz 7sTWXzpOFhBpGOrR3ypm20yAhadQGiIsW35kML/A+h+lhgcs+t/BgtLZB82n7DzsyQzB 5+/tdPuTV4AvOs+6XTJazY0RTc4Rlp5gqe6CT0DR4A9xmrsyvzDmrVoTEANE8cuQvbij TNyg== X-Gm-Message-State: AKS2vOwRB9IwdVWH2qeOHODYIYvwv3rQkSlhNIZoZaw/bmknIGTFIk5h 0CscdUfbSv51Of3N X-Received: by 10.99.125.76 with SMTP id m12mr10019989pgn.269.1498247859690; Fri, 23 Jun 2017 12:57:39 -0700 (PDT) Received: from [127.0.1.1] ([103.211.52.128]) by smtp.gmail.com with ESMTPSA id j6sm12439403pgc.1.2017.06.23.12.57.38 for <mercurial-devel@mercurial-scm.org> (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jun 2017 12:57:39 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 5 of 9] py3: check for bytes instead of str in isinstance X-Mercurial-Node: 98d32035dd10311980576a1007ca0ba1cf98240f X-Mercurial-Series-Index: 5 X-Mercurial-Series-Total: 9 Message-Id: <98d32035dd1031198057.1498247699@workspace> X-Mercurial-Series-Id: <8dce5f597161758063af.1498247695@workspace> In-Reply-To: <8dce5f597161758063af.1498247695@workspace> References: <8dce5f597161758063af.1498247695@workspace> User-Agent: Mercurial-patchbomb/4.2+335-34e9b8b94f66 Date: Sat, 24 Jun 2017 01:24:59 +0530 From: Pulkit Goyal <7895pulkit@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
Pulkit Goyal - June 23, 2017, 7:54 p.m.
Patch
diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -130,7 +130,7 @@ def islocal(repo): '''return true if repo (or path pointing to repo) is local''' - if isinstance(repo, str): + if isinstance(repo, bytes): try: return _peerlookup(repo).islocal(repo) except AttributeError: