#NEWLINE# def _eval_op( lhs , op , rhs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# spec = Specifier ( '' . join ( [ op , rhs ] ) ) #NEWLINE# #UNINDENT# except InvalidSpecifier : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return spec . contains ( lhs ) #NEWLINE# #UNINDENT# oper = _operators . get ( op ) #NEWLINE# if ( oper is None ) : #NEWLINE# #INDENT# raise UndefinedComparison ( 'Undefined {0!r} on {1!r} and {2!r}.' . format ( op , lhs , rhs ) ) #NEWLINE# #UNINDENT# return oper ( lhs , rhs )