MCPcopy Index your code
hub / github.com/saltstack/salt / Version

Class Version

tools/utils/__init__.py:236–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236class Version(packaging.version.Version):
237 def __lt__(self, other):
238 if not isinstance(other, self.__class__):
239 other = self.__class__(other)
240 return super().__lt__(other)
241
242 def __le__(self, other):
243 if not isinstance(other, self.__class__):
244 other = self.__class__(other)
245 return super().__le__(other)
246
247 def __eq__(self, other):
248 if not isinstance(other, self.__class__):
249 other = self.__class__(other)
250 return super().__eq__(other)
251
252 def __ge__(self, other):
253 if not isinstance(other, self.__class__):
254 other = self.__class__(other)
255 return super().__ge__(other)
256
257 def __gt__(self, other):
258 if not isinstance(other, self.__class__):
259 other = self.__class__(other)
260 return super().__gt__(other)
261
262 def __ne__(self, other):
263 if not isinstance(other, self.__class__):
264 other = self.__class__(other)
265 return super().__ne__(other)
266
267 def __str__(self):
268 return super().__str__().replace(".post", "-")
269
270 def __hash__(self):
271 return hash(str(self))
272
273
274def get_salt_releases(

Callers 4

_get_salt_versionFunction · 0.90
update_release_notesFunction · 0.90
get_salt_releasesFunction · 0.70
parse_versionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected