def match(self, version):
        """
        Check if version is allowed by the version specifiers.
        :param version: version to check
        :type version: str
        :return: whether the version is allowed or not
        :rtype: boolean
        """
        # return all([op(Version.parse(version), Version.parse(ver)) for op, ver in self.specs])
        matches = True
        for op, ver in self.specs:
            try:
                vi = Version.parse(version)
                evi = Version.parse(ver)
            except:
                # warning: wildcard except!
                # fallback to old, string-based comparsion
                if not op(version, ver):
                    matches = False
            else:
                if not op(vi, evi):
                    matches = False
        return matches

        Check if version is allowed by the version specifiers.
        :param version: version to check
        :type version: str
        :return: whether the version is allowed or not
        :rtype: boolean
        
lib/libversion.py