From ed8e862d296293d544aada35284e6cf776477d04 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Thu, 26 Jul 2018 14:04:55 +0800 Subject: [PATCH] isnumeric -> isdigit --- pipenv/vendor/pythonfinder/models/python.py | 4 ++-- pipenv/vendor/pythonfinder/pythonfinder.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pipenv/vendor/pythonfinder/models/python.py b/pipenv/vendor/pythonfinder/models/python.py index 6176fad4..f10ddb4e 100644 --- a/pipenv/vendor/pythonfinder/models/python.py +++ b/pipenv/vendor/pythonfinder/models/python.py @@ -65,7 +65,7 @@ class PythonVersion(object): def matches( self, major=None, minor=None, patch=None, pre=False, dev=False, arch=None ): - if arch and arch.isnumeric(): + if arch and arch.isdigit(): arch = "{0}bit".format(arch) return ( (major is None or self.major == major) @@ -192,7 +192,7 @@ class PythonVersion(object): @classmethod def create(cls, **kwargs): if "architecture" in kwargs: - if kwargs["architecture"].isnumeric(): + if kwargs["architecture"].isdigit(): kwargs["architecture"] = "{0}bit".format(kwargs["architecture"]) return cls(**kwargs) diff --git a/pipenv/vendor/pythonfinder/pythonfinder.py b/pipenv/vendor/pythonfinder/pythonfinder.py index d6f49bf7..035842e2 100644 --- a/pipenv/vendor/pythonfinder/pythonfinder.py +++ b/pipenv/vendor/pythonfinder/pythonfinder.py @@ -66,7 +66,7 @@ class Finder(object): ): if arch is None and "-" in major: major, arch = major.rsplit("-", 1) - if not arch.isnumeric(): + if not arch.isdigit(): major = "{0}-{1}".format(major, arch) else: arch = "{0}bit".format(arch)