def is_invalid_marker(cls, text):
        """
        Validate text as a PEP 426 environment marker; return an exception
        if invalid or False otherwise.
        """
        try:
            cls.evaluate_marker(text)
        except SyntaxError:
            return cls.normalize_exception(sys.exc_info()[1])
        return False
def is_invalid_marker(cls, text):
        
        try:
            cls.evaluate_marker(text)
        except SyntaxError:
            return cls.normalize_exception(sys.exc_info()[1])
        return False
def is_invalid_marker ( cls , text ) : try : cls . evaluate_marker ( text ) except SyntaxError : return cls . normalize_exception ( sys . exc_info ( ) [ 1 ] ) return False
Validate text as a PEP 426 environment marker; return an exception
        if invalid or False otherwise.
Validate text as a PEP 426 environment marker ; return an exception if invalid or False otherwise .