def splitUp(pred):
 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))

def splitUp ( pred ) : 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 ) )
parse a single version comparison .