Coverage for requests.compat : 66%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*-
pythoncompat """
# ------- # Pythons # -------
# Syntax sugar.
#: Python 2.x?
#: Python 3.x?
# simplejson does not support Python 3.2, it throws a SyntaxError # because of u'...' Unicode literals.
# --------- # Specifics # ---------
elif is_py3: from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote, quote_plus, unquote_plus, urldefrag from urllib.request import parse_http_list, getproxies, proxy_bypass from http import cookiejar as cookielib from http.cookies import Morsel from io import StringIO from collections import OrderedDict
builtin_str = str str = str bytes = bytes basestring = (str, bytes) numeric_types = (int, float) |