def body_as_query_string(left, right):
    if left.path == right.path and left.path in 'ajaxuploader':
        return True # We can't seem to handle matching photo uploads likely
        # because of requests internals.
    try:
        left_qs_items = list(urllib.parse.parse_qs(left.body).items())
        right_qs_items = list(urllib.parse.parse_qs(right.body).items())
    except Exception as exc:
        log.debug(exc)
        return left.body == right.body
    else:
        left_qs_items = [(k, tuple(v)) for k, v in left_qs_items]
        right_qs_items = [(k, tuple(v)) for k, v in right_qs_items]
        return _match_search_query(left_qs_items, right_qs_items)
dataset/ETHPy150Open IvanMalison/okcupyd/okcupyd_testing/util.py/body_as_query_string/swapped operands of `in`