Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Parse a single version comparison.

Return (comparison string, StrictVersion)

        def splitUp(pred):
    """Parse a single version comparison.

    Return (comparison string, StrictVersion)
    """
    res = re_splitComparison.match(pred)
    if not res:
        raise ValueError("bad package restriction syntax: %r" % pred)
    comp, verStr = res.groups()
    return (comp, distutils.version.StrictVersion(verStr))
        


src/4/s/4Suite-XML-1.0.2/Ft/Lib/DistExt/Version.py   4Suite-XML(Download)
 
try:
    from distutils.versionpredicate import VersionPredicate, \
         split_provision as SplitProvision, \
         splitUp as SplitComparison