| 234 | |
| 235 | |
| 236 | class 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 | |
| 274 | def get_salt_releases( |
no outgoing calls
no test coverage detected