Lines Matching defs:Version
244 class Version(object):
245 """Version format is release[,build_release]-branch:datetime, which we
259 raise IllegalVersion("Version cannot be empty")
316 raise IllegalVersion("Bad Version: {0}".format(e))
354 return Version(state, None)
365 return "<pkg.fmri.Version '{0}' at {1:#x}>".format(self,
397 if not isinstance(other, Version):
407 if not isinstance(other, Version):
423 if not isinstance(other, Version):
456 if not isinstance(other, Version):
635 class MatchingVersion(Version):
636 """An alternative for Version with (much) weaker rules about its format.
644 raise IllegalVersion("Version cannot be empty")
681 raise IllegalVersion("Bad Version: {0}".format(e))
703 return Version.get_timestamp(self)
706 if not isinstance(other, Version):
718 if not isinstance(other, Version):
736 if not isinstance(other, Version):
773 if not isinstance(other, Version):