def _rewrite_assign(tok):
 (toknum, tokval) = tok
 return (toknum, ('==' if (tokval == '=') else tokval))

def _rewrite_assign ( tok ) : ( toknum , tokval ) = tok return ( toknum , ( '==' if ( tokval == '=' ) else tokval ) )
rewrite the assignment operator for pytables expressions that use = as a substitute for == .