mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Upgrade vendored pythonfinder
Now at commit 6ad2bbd8bdc2, around 0.1.4.
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
# -*- coding=utf-8 -*-
|
||||
from __future__ import print_function, absolute_import
|
||||
import attr
|
||||
import copy
|
||||
import platform
|
||||
@@ -122,7 +123,7 @@ class PythonVersion(object):
|
||||
if not path.is_python:
|
||||
raise ValueError("Not a valid python path: %s" % path.path)
|
||||
return
|
||||
py_version, _ = get_python_version(str(path.path))
|
||||
py_version = get_python_version(str(path.path))
|
||||
instance_dict = cls.parse(py_version)
|
||||
if not isinstance(instance_dict.get("version"), Version):
|
||||
raise ValueError("Not a valid python path: %s" % path.path)
|
||||
|
||||
Reference in New Issue
Block a user