mirror of https://github.com/pypa/pip
Ensure pypi_version in outdated is a str
This commit is contained in:
parent
e41b8b1959
commit
933431f63b
|
@ -133,7 +133,9 @@ def pip_version_check(session, options):
|
|||
all_candidates = finder.find_all_candidates("pip")
|
||||
if not all_candidates:
|
||||
return
|
||||
pypi_version = max(all_candidates, key=lambda c: c.version).version
|
||||
pypi_version = str(
|
||||
max(all_candidates, key=lambda c: c.version).version
|
||||
)
|
||||
|
||||
# save that we've performed a check
|
||||
state.save(pypi_version, current_time)
|
||||
|
|
Loading…
Reference in New Issue