Skip to content

Commit

Permalink
More isdigit() fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Jul 18, 2018
1 parent e2eda5f commit 8143f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipenv/vendor/pythonfinder/models/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def from_windows_launcher(cls, launcher_entry):
@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)

Expand Down
2 changes: 1 addition & 1 deletion pipenv/vendor/pythonfinder/pythonfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def find_python_version(self, major, minor=None, patch=None, pre=None, dev=None,
if isinstance(major, six.string_types) and pre is None and minor is None and dev is None and patch is None:
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)
Expand Down

0 comments on commit 8143f40

Please sign in to comment.