MCPcopy
hub / github.com/jtesta/ssh-audit / between_versions

Method between_versions

src/ssh_audit/software.py:102–107  ·  view source on GitHub ↗
(self, vfrom: str, vtill: str)

Source from the content-addressed store, hash-verified

100 return 0
101
102 def between_versions(self, vfrom: str, vtill: str) -> bool:
103 if bool(vfrom) and self.compare_version(vfrom) < 0:
104 return False
105 if bool(vtill) and self.compare_version(vtill) > 0:
106 return False
107 return True
108
109 def display(self, full: bool = True) -> str:
110 r = '{} '.format(self.vendor) if bool(self.vendor) else ''

Calls 1

compare_versionMethod · 0.95