def all_versions_equal(self, versions):  # type: (Dict[str,str]) -> bool
        """
        Verify that all the versions are the same.
        :param versions:
        :return:
        """
        if len(versions) <= 1:
            return True

        semver = None
        for key, version in versions.items():
            if semver is None:
                try:
                    semver, _, __ = version_object_and_next(version)
                except ValueError:
                    logger.error("Invalid version at:" + unicode((key, version)))
                    return False
                continue
            try:
                version_as_version, _, __ = version_object_and_next(version)
            except:
                return False
            if version_as_version != semver:
                return False
        return True
def all_versions_equal ( self , versions ) : if len ( versions ) <= 1 : return True semver = None for key , version in versions . items ( ) : if semver is None : try : semver , _ , __ = version_object_and_next ( version ) except ValueError : logger . error ( "Invalid version at:" + unicode ( ( key , version ) ) ) return False continue try : version_as_version , _ , __ = version_object_and_next ( version ) except : return False if version_as_version != semver : return False return True
Verify that all the versions are the same.
        :param versions:
        :return: