Submitter | Yuya Nishihara |
---|---|
Date | Aug. 14, 2016, 9:33 a.m. |
Message ID | <d53bd633898ec6edafcc.1471167227@mimosa> |
Download | mbox | patch |
Permalink | /patch/16278/ |
State | Changes Requested |
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 EA3B92C475; Sun, 14 Aug 2016 05:34:14 -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 vVwA-HFq8-FP; Sun, 14 Aug 2016 05:34:14 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id ADAE82C47C; Sun, 14 Aug 2016 05:34:13 -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 E03E32C471 for <mercurial-devel@mercurial-scm.org>; Sun, 14 Aug 2016 05:34: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 2Z7LxBheTgUW for <mercurial-devel@mercurial-scm.org>; Sun, 14 Aug 2016 05:34:12 -0400 (EDT) Received: from mail-pa0-x242.google.com (mail-pa0-x242.google.com [IPv6:2607:f8b0:400e:c03::242]) by mercurial-scm.org (Postfix) with ESMTPS id 321472C46E for <mercurial-devel@mercurial-scm.org>; Sun, 14 Aug 2016 05:34:11 -0400 (EDT) Received: by mail-pa0-x242.google.com with SMTP id ez1so1972815pab.3 for <mercurial-devel@mercurial-scm.org>; Sun, 14 Aug 2016 02:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=OOW8akCEVUsg0vp5AtXlTsn91CAFoySeNHAW/DR7sF8=; b=AKxZVyZtWh4GNFBlb8WA1rA8lyVSdWWU48mjWFyxYCLvH6AG0xKeCyNScTmKCeuXzW xTAnofim6YDLKsyqGehyF812lO2z6oX1yJSWEo5s5JVGs1N37uSdfA96yJ9hz5MWypOi 2NizMbDjOZDRBeyyMGgv5pQFQApfiGyztIWEUnUgvdVvL2j+2Ffa8NdeH9Of7KlzgAPe Dwa9KYxC/X4ug1o8yE6oFHoIDVz1g51allFgdzeI0amyomasTfaRQoKoho1zsb9Bt2G5 aM0kRgpuWJDp4Z/LLIYZHAEcJyKTxgBhwLqRWPBp5rKl4PpSGhfo9GilabInXgMbzIfj DTlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :subject:message-id:in-reply-to:references:user-agent:date:from:to; bh=OOW8akCEVUsg0vp5AtXlTsn91CAFoySeNHAW/DR7sF8=; b=an9qA87RZ6h/6FT/oAPcpy5GOH6rIMrWp+x4vo+Yil+5aFMO7pUYgQG1XoMfqExknU a3iIfYCRVDRTfOJV0Bfkgq6IBMLvOcJsj+PzTr42K1gBBoNG9uhUgz35sTAJ+VME4dxr Bktmu+WWopT3DKWjF0u4iVB2lDO8YRETWUlu6vVUi4jhTj51NQpm0jErofbhnvUsCHdl R1MdUS0cYtZkmlqOxkhDnMlB9HyIGLp+e6Ay4tbBKbmXT/yHyUgb4W+AS++NT+y0UDkn UsJY57Y5dlN4GJ4nO8zJpV0P2Wf51s165YiZv3v+Yo/H71qTWDiQbtM0jIKesO3E4hzY dYYg== X-Gm-Message-State: AEkoouvIjZBEUTQ5EmFev5zQ5gj04mTJk1pR9tE0XOMB9FKJHLzhPWqR36Ko1YnF/8rEEw== X-Received: by 10.66.148.7 with SMTP id to7mr44299255pab.128.1471167250517; Sun, 14 Aug 2016 02:34:10 -0700 (PDT) Received: from [127.0.1.1] (flets-202-70-215-185.client.pikara.ne.jp. [202.70.215.185]) by smtp.gmail.com with ESMTPSA id v124sm24997093pfb.14.2016.08.14.02.34.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Aug 2016 02:34:09 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 3 of 4 RFC] pycompat: check python version to enable builtins hack X-Mercurial-Node: d53bd633898ec6edafccea9f798d314699faf90a X-Mercurial-Series-Index: 3 X-Mercurial-Series-Total: 4 Message-Id: <d53bd633898ec6edafcc.1471167227@mimosa> X-Mercurial-Series-Id: <131cc484d7fe95d07f67.1471167225@mimosa> In-Reply-To: <131cc484d7fe95d07f67.1471167225@mimosa> References: <131cc484d7fe95d07f67.1471167225@mimosa> User-Agent: Mercurial-patchbomb/3.9+107-19578bb84731 Date: Sun, 14 Aug 2016 18:33:47 +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 - Aug. 14, 2016, 9:33 a.m.
Patch
diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py --- a/mercurial/pycompat.py +++ b/mercurial/pycompat.py @@ -29,9 +29,7 @@ else: import urllib.parse as urlparse import xmlrpc.client as xmlrpclib -try: - xrange -except NameError: +if sys.version_info[0] >= 3: import builtins builtins.xrange = range