black style tweaks: manually added commas etc to tweak formatting

This commit is contained in:
Erik Sundell
2021-06-28 13:03:40 +02:00
committed by Erik Sundell
parent fe3968efe0
commit a582c24e19
6 changed files with 28 additions and 21 deletions

View File

@@ -143,13 +143,15 @@ class CondaPackageHelper:
continue
current = min(inst_vs, key=CondaPackageHelper.semantic_cmp)
newest = avail_vs[-1]
if avail_vs and current != newest:
if CondaPackageHelper.semantic_cmp(
current
) < CondaPackageHelper.semantic_cmp(newest):
self.comparison.append(
{"Package": pkg, "Current": current, "Newest": newest}
)
if (
avail_vs
and current != newest
and CondaPackageHelper.semantic_cmp(current)
< CondaPackageHelper.semantic_cmp(newest)
):
self.comparison.append(
{"Package": pkg, "Current": current, "Newest": newest}
)
return self.comparison
@staticmethod