def _has_beta(version, dev_releases):
 return (version in [re.search('(\\d+\\.)+\\d+', s).group(0) for s in dev_releases.keys()])

def _has_beta ( version , dev_releases ) : return ( version in [ re . search ( '(\\d+\\.)+\\d+' , s ) . group ( 0 ) for s in dev_releases . keys ( ) ] )
returns true if the version has a beta release .