def _download_webpage_handle(self, url_or_request, video_id, note=None, errnote=None, fatal=True, encoding=None, data=None, headers={}, query={}, expected_status=None):
    '\n        Return a tuple (page content as string, URL handle).\n\n        See _download_webpage docstring for arguments specification.\n        '
    if isinstance(url_or_request, (compat_str, str)):
        url_or_request = url_or_request.partition('#')[0]
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
    if (urlh is False):
        assert (not fatal)
        return False
    content = self._webpage_read_content(urlh, url_or_request, video_id, note, errnote, fatal, encoding=encoding)
    return (content, urlh)
Return a tuple (page content as string, URL handle).

See _download_webpage docstring for arguments specification.
def _download_webpage_handle(self, url_or_request, video_id, note=None, errnote=None, fatal=True, encoding=None, data=None, headers={}, query={}, expected_status=None):
    '\n        Return a tuple (page content as string, URL handle).\n\n        See _download_webpage docstring for arguments specification.\n        '
    if isinstance(url_or_request, (compat_str, str)):
        url_or_request = url_or_request.partition('#')[0]
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
    if (urlh is False):
        assert (not fatal)
        return False
    content = self._webpage_read_content(urlh, url_or_request, video_id, note, errnote, fatal, encoding=encoding)
    return (content, urlh)