8000 Update prefix_data.py by WinstonPais · Pull Request #9999 · conda/conda · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions conda/core/prefix_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ def get_python_version_for_prefix(prefix):
next_record = next(py_record_iter, None)
if next_record is not None:
raise CondaDependencyError("multiple python records found in prefix %s" % prefix)
elif record.version[3].isdigit():
return record.version[:4]
else:
return record.version[:3]

Expand Down
0