def request_repr(request, operation=None):
    """ Return string representation of QNetworkRequest suitable for logging """
    method = OPERATION_NAMES.get(operation, '?')
    url = qurl2ascii(request.url())
    return "%s %s" % (method, url)
dataset/ETHPy150Open scrapinghub/splash/splash/qtutils.py/request_repr/original