kr.motd.maven.sphinx.dist.requests.utils$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1 f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ ?
requests.utils
~~~~~~~~~~~~~~
This module provides utility functions that are used within Requests
that are also useful for external consumption.
org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
cgi org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
setlocal
codecs " collections $
contextlib & io ( os * platform , re . socket 0 struct 2 warnings 4 __version__ 6 java/lang/String 8
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; : ;
< > certs @ _internal_utils B to_native_string D compat F parse_http_list H _parse_list_header J quote L urlparse N bytes P str R OrderedDict T unquote V
getproxies X proxy_bypass Z
urlunparse \
basestring ^
integer_types ` is_py3 b proxy_bypass_environment d getproxies_environment f cookies h cookiejar_from_dict j
structures l CaseInsensitiveDict n
exceptions p
InvalidURL r
InvalidHeader t FileModeWarning v UnrewindableBodyError x org/python/core/PyTuple z org/python/core/PyObject | .netrc ~ _netrc ? ([Lorg/python/core/PyObject;)V ? ?
{ ? NETRC_FILES ? getname .(Ljava/lang/String;)Lorg/python/core/PyObject; ? ?
? where ? __getattr__ ? ?
} ? __call__ 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ? ?
} ? DEFAULT_CA_BUNDLE_PATH ? system ? Windows ? _eq 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
} ? __nonzero__ ()Z ? ?
} ? org/python/core/Py ? EmptyObjects [Lorg/python/core/PyObject; ? ? ? ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ? proxy_bypass_registry$1 getglobal ? ?
? winreg ? (ILorg/python/core/PyObject;)V ?
? _winreg ? importOneAs ?
? getlocal (I)Lorg/python/core/PyObject; ? ?
? OpenKey ? HKEY_CURRENT_USER ? ;Software\Microsoft\Windows\CurrentVersion\Internet Settings ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
} ? QueryValueEx ? ProxyEnable ?
newInteger (I)Lorg/python/core/PyInteger; ? ?
? ? __getitem__ ? ?
} ?
ProxyOverride ? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; ? ?
? ? OSError ? org/python/core/PyException ? match (Lorg/python/core/PyObject;)Z ? ?
? ? False ? f_lasti I ? ? ? java/lang/Throwable ? __not__ ()Lorg/python/core/PyObject; ? ?
} ? split ? ; ? S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
} ? __iter__ ? ?
} ? ? . ? _notin ? ?
} ? True replace \. * .* ?
? ? ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?
} __iternext__ ?
} requests/utils$py Lorg/python/core/PyCode; ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ?
? proxy_bypass_registry proxy_bypass$2 ?Return True, if the host should be bypassed.
Checks proxy settings gathered from the environment, if specified,
or the registry.
! dict_to_sequence$3 /Returns an internal sequence dictionary update.$ hasattr& items(# * dict_to_sequence, super_len$4 None/ __len__1 len3 fileno5 UnsupportedOperation7 fstat9 st_size; b= mode? warnA%Requests has determined the content-length for this request using the binary size of the file: however, the file has been opened in text mode (i.e. without the 'b' flag in the mode). This may lead to an incorrect content-length. In Requests 3.0, support will be removed for files in text mode.C tellE IOErrorG _isnotI ?
}J seekL _isN ?
}O maxQ _subS ?
}T. V super_lenX get_netrc_auth$5 ;Returns the Requests tuple auth for a given url from netrc.[ netrc] NetrcParseError_ patha
expanduserc ~/{0}e formatg KeyErrori/ ? ?k existsm :o
isinstanceq decodes asciiu netlocw authenticatorsy
makeException ()Lorg/python/core/PyException;{|
?} ImportError AttributeError?Z ? get_netrc_auth? guess_filename$6 0Tries to guess the filename of the given object.? getattr? name? <? _ne? ?
}? >? basename?? ? guess_filename? from_key_val_list$7?Take an object and test to see if it can be represented as a
dictionary. Unless it can not be represented as such, return an
OrderedDict, e.g.,
::
>>> from_key_val_list([('key', 'val')])
OrderedDict([('key', 'val')])
>>> from_key_val_list('string')
ValueError: need more than 1 value to unpack
>>> from_key_val_list({'key': 'val'})
OrderedDict([('key', 'val')])
:rtype: OrderedDict
? bool? int?
ValueError? +cannot encode objects that are not 2-tuples? 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;{?
??? ? from_key_val_list? to_key_val_list$8?Take an object and test to see if it can be represented as a
dictionary. If it can be, return a list of tuples, e.g.,
::
>>> to_key_val_list([('key', 'val')])
[('key', 'val')]
>>> to_key_val_list({'key': 'val'})
[('key', 'val')]
>>> to_key_val_list('string')
ValueError: cannot encode objects that are not 2-tuples.
:rtype: list
? Mapping? list?? ? to_key_val_list? parse_list_header$9Parse lists as described by RFC 2068 Section 2.
In particular, parse comma-separated lists where the elements of
the list may include quoted-strings. A quoted-string could
contain a comma. A non-quoted string could have quotes in the
middle. Quotes are removed automatically after parsing.
It basically works like :func:`parse_set_header` just that items
may appear multiple times and case sensitivity is preserved.
The return value is a standard :class:`list`:
>>> parse_list_header('token, "quoted value"')
['token', 'quoted value']
To create a header from the :class:`list` again, use the
:func:`dump_header` function.
:param value: a string with a list header.
:return: :class:`list`
:rtype: list
? org/python/core/PyList?
? ? __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
}? "? unquote_header_value? append?? ? parse_list_header? parse_dict_header$10^Parse lists of key, value pairs as described by RFC 2068 Section 2 and
convert them into a python dict:
>>> d = parse_dict_header('foo="is a fish", bar="as well"')
>>> type(d) is dict
True
>>> sorted(d.items())
[('bar', 'as well'), ('foo', 'is a fish')]
If there is no value for a key it will be `None`:
>>> parse_dict_header('key_without_value')
{'key_without_value': None}
To create a header from the :class:`dict` again, use the
:func:`dump_header` function.
:param value: a string with a dict header.
:return: :class:`dict`
:rtype: dict
? org/python/core/PyDictionary?
? ? =? __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V??
}? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;??
??? ? parse_dict_header? unquote_header_value$11 ?Unquotes a header value. (Reversal of :func:`quote_header_value`).
This does not use the real unquoting but what browsers are actually
using for quoting.
:param value: the header value to unquote.
:rtype: str
? \\? \? \"?? ? dict_from_cookiejar$12 ?Returns a key/value dictionary from a CookieJar.
:param cj: CookieJar object to extract cookies from.
:rtype: dict
? value?? ? dict_from_cookiejar? add_dict_to_cookiejar$13 ?Returns a CookieJar from a key/value dictionary.
:param cj: CookieJar to insert cookies into.
:param cookie_dict: Dict of key/values to insert into CookieJar.
:rtype: CookieJar
?? ? add_dict_to_cookiejar? get_encodings_from_content$14 lReturns encodings from given content string.
:param content: bytestring to extract encodings from.
? ?In requests 3.0, get_encodings_from_content will be removed. For more information, please see the discussion on issue #2266. (This warning should only appear once.)? DeprecationWarning compile !] flags g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; ?
} +] $^<\?xml.*?encoding=["\']*(.+?)["\'>]
findall _add ?
}? get_encodings_from_content get_encoding_from_headers$15 }Returns encodings from given HTTP Header Dict.
:param headers: dictionary to extract encoding from.
:rtype: str
get content-type parse_header charset! _in# ?
}$ strip& '"( text*
ISO-8859-1, . get_encoding_from_headers0 !stream_decode_response_unicode$16 Stream decodes a iterator.3 encoding5 java/lang/Object7
f_savedlocals [Ljava/lang/Object;9: ; getGeneratorInput ()Ljava/lang/Object;=>
? getincrementaldecoderA errorsC finalE2 G stream_decode_response_unicodeI iter_slices$17 Iterate over slices of a string.L _leN ?
}O _iaddQ ?
}R _ltT ?
}UK W iter_slicesY get_unicode_from_response$18 ?Returns the requested content back in unicode.
:param r: Response object to get unicode content from.
Tried:
1. charset from content-type
2. fall back and replace all unicode characters
:rtype: str
\ ?In requests 3.0, get_unicode_from_response will be removed. For more information, please see the discussion on issue #2266. (This warning should only appear once.)^ headers` contentb UnicodeErrord TypeErrorf[ h get_unicode_from_responsej frozensetl 4ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzn 0123456789-._~p UNRESERVED_SETr unquote_unreserved$19 ?Un-escape any percent-escape sequences in a URI that are unreserved
characters. This leaves all reserved, illegal and non-ASCII bytes encoded.
:rtype: str
u %w rangey isalnum{ chr} %Invalid percent-escape sequence: '%s' _mod? ?
}? join?t ? unquote_unreserved? requote_uri$20 ?Re-quote the given URI.
This function passes the given URI through an unquote/quote cycle to
ensure that it is fully and consistently quoted.
:rtype: str
? !#$%&'()*+,/:;=?@[]~? !#$&'()*+,/:;=?@[]~? safe?? ? requote_uri? address_in_network$21 ?This function allows you to check if an IP belongs to a network subnet
Example: returns True if ip = 192.168.1.1 and net = 192.168.1.0/24
returns False if ip = 192.168.1.1 and net = 192.168.100.0/24
:rtype: bool
? unpack? =L? inet_aton? /? dotted_netmask? _and? ?
}?? ? address_in_network? dotted_netmask$22 ?Converts mask from /xx format to xxx.xxx.xxx.xxx
Example: if mask is 24 function returns 255.255.255.0
:rtype: str
?
4294967295? newLong ,(Ljava/lang/String;)Lorg/python/core/PyLong;??
?? _lshift? ?
}? _xor? ?
}? inet_ntoa? pack? >I?? ? is_ipv4_address$23
:rtype: bool
? error?? ? is_ipv4_address? is_valid_cidr$24 V
Very simple check of the cidr format in no_proxy variable.
:rtype: bool
? count? _gt? ?
}?? ?
is_valid_cidr? set_environ$25 ?Set the environment variable 'env_name' to 'value'
Save previous value, yield, and then restore the previous value stored in
the environment variable 'env_name'.
If 'value' is None, do nothing? environ? __delitem__ (Lorg/python/core/PyObject;)V??
}? addTraceback 1(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)V??
??? ? contextmanager? set_environ? should_bypass_proxies$26 f_exits? ? ? L
Returns whether we should bypass proxies or not.
:rtype: bool
? f$27 upper?? ? P(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)V ??
?? no_proxy? f$28? ? ? ,? java/util/Arrays fill (([Ljava/lang/Object;Ljava/lang/Object;)V
endswith org/python/core/ContextGuard
getManager <(Lorg/python/core/PyObject;)Lorg/python/core/ContextManager;
org/python/core/ContextManager __enter__ ? gaierror __exit__ =(Lorg/python/core/ThreadState;Lorg/python/core/PyException;)Z? should_bypass_proxies get_environ_proxies$29 A
Return a dict of environment proxies.
:rtype: dict
! get_environ_proxies# select_proxy$30 ?Select a proxy for the url, if applicable.
:param url: The url being for the request
:param proxies: A dictionary of schemes or schemes and hosts to proxy URLs
& hostname( scheme* all, ://. all://0% 2 select_proxy4 python-requests6 default_user_agent$31 O
Return a string representing the default user agent.
:rtype: str
9 %s/%s;8 = default_user_agent? default_headers$32 9
:rtype: requests.structures.CaseInsensitiveDict
B
User-AgentD Accept-EncodingF , H gzipJ deflateL AcceptN */*P
ConnectionR
keep-aliveTA V default_headersX parse_header_links$33 ?Return a dict of parsed link headers proxies.
i.e. Link: ; rel=front; type="image/jpeg",; rel=back;type="image/jpeg"
:rtype: list
[ '"] , *<_ urla <> '"cZ e parse_header_linksg ??i encodek _nullm _mulo ?
}p _null2r _null3t guess_json_utf$34
:rtype: str
w BOM_UTF32_LEy BOM_UTF32_BE{ utf-32} BOM_UTF8 utf-8-sig? BOM_UTF16_LE? BOM_UTF16_BE? utf-16? utf-8? utf-16-be? utf-16-le? utf-32-be? utf-32-le?v ? guess_json_utf? prepend_scheme_if_needed$35 ?Given a URL that may or may not have a scheme, prepend the given scheme.
Does not replace a present scheme with the one provided as an argument.
:rtype: str
?? ? prepend_scheme_if_needed? get_auth_from_url$36 {Given a url with authentication components, extract them into a tuple of
username,password.
:rtype: (str,str)
? username? password?? ? get_auth_from_url? ^\S[^\r\n]*$|^$? _CLEAN_HEADER_REGEX_BYTE? _CLEAN_HEADER_REGEX_STR? check_header_validity$37 ?Verifies that header value is a string which doesn't contain
leading whitespace or return characters. This prevents unintended
header injection.
:param header: tuple, in the format (name, value).
? 7Invalid return character or leading space in header: %s? >Value for header {%s: %s} must be of type str or bytes, not %s? type?? ? check_header_validity? urldefragauth$38 W
Given a url remove the fragment and the authentication part.
:rtype: str
? rsplit? @?? ?
urldefragauth? rewind_body$39 fMove file pointer back to its recorded starting position
so it can be read again on redirect.
? body? _body_position? ;An error occurred when rewinding request body for redirect.? +Unable to rewind request body for redirect.?? ? rewind_body? (Ljava/lang/String;)V org/python/core/PyFunctionTable? ()V ??
?? self Lrequests/utils$py;?? ? ? newCode ?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode;??
?? ? host? internetSettings? proxyEnable?
proxyOverride? test? d? o? total_length? current_position? raise_errors?
netrc_path? f? loc ri splitstr login_i obj result
item is_filename cj cookie_dict cookie
charset_re pragma_re xml_re content_type params iterator r" decoder$ chunk& rv( string* slice_length, pos. tried_encodings0 uri2 parts4 i6 h8 c: safe_with_percent< safe_without_percent> ip@ netB ipaddrD netaddrF bitsH netmaskJ networkL maskN string_ipP string_networkR env_nameT
value_changedV old_valueX get_proxyZ no_proxy_arg\ _(648_12)^ proxy_ip` bypassb kd f _(x)h j proxiesl urlpartsn
proxy_keysp proxyr proxy_keyt linksv
replace_charsx valz link| param~ key? data? sample? nullcount?
new_scheme? query? fragment? parsed? auth? header? pat? prepared_request? body_seek? getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ??
???
? org/python/core/CodeLoader? createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;??
?? runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V??
?? getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap? )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;??
??
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
? ?
?
?#
?.
?Z
??
??
??
??
??
??
??
??
??
?
?2
?K
?[
?t
??
??
??
??
??
??
??
??
??
?
?%
?8
?A
?Z
?v
??
??
??
?
?
org/python/core/PyRunnable Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; X/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/requests/utils.py org/python/core/ThreadState org/python/core/PyInteger ?: [Ljava/lang/String; Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations !? ) ?? ? # . Z ? ? ? ? ? ? ? ? ? 2 K [ t ? ? ? ? ? ? ? ? ? % 8 A Z v ? ? ? ? ? - ? ?+? ? + ? ? W+? +? N+-? !N+? #+? N+#-? !N+
? %+? N+%-? !N+? '+? N+'-? !N+? )+? N+)-? !N+? ++? N++-? !N+? -+? N+--? !N+? /+? N+/-? !N+? 1+? N+1-? !N+? 3+? N+3-? !N+? 5+? N+5-? !N+? 7? 9N-7S-+? =N-2:+7? !:+? ?? 9N-AS-+? =N-2:+A? !:+? C? 9N-ES-+? =N-2:+E? !:+? G? 9N-IS-+? =N-2:+K? !:+? G? 9N-MS-OS-QS-SS-US-WS-YS-[S-]S- _S-
aS-cS-eS-
gS-+? =N-2:+M? !:-2:+O? !:-2:+Q? !:-2:+S? !:-2:+U? !:-2:+W? !:-2:+Y? !:-2:+[? !:-2:+]? !:- 2:+_? !:-
2:+a? !:-2:+c? !:-2:+e? !:-
2:+g? !:+ ? i? 9N-kS-+? =N-2:+k? !:+!? m? 9N-oS-+? =N-2:+o? !:+"? q? 9N-sS-uS-wS-yS-+? =N-2:+s? !:-2:+u? !:-2:+w? !:-2:+y? !:+%? ? {Y? }Y? SY?? S? ?N+?-? !N+'? +A? ??? ?,? ?N+?-? !N+*? +-? ??? ?,? ?N?? -_? ?N? ?? T+-? ? ?N? ?Y+? ?-??N+-? !N+N? ? ?N? ?Y+? ?-?" ? ?N+[-? !N? +Z? ? ?N? ?Y+? ?-?+%? ?N+--? !N+c? ? ?N? ?Y+? ?-?W?N+Y-? !N+ ?? ? }N+? ?-__S? ?Y+? ?-??\? ?N+?-? !N+ Ӷ ? ?N? ?Y+? ?-???? ?N+?-? !N+ ۶ ? ?N? ?Y+? ?-???? ?N+?-? !N+ ?? ? ?N? ?Y+? ?-???? ?N+?-? !N+? ? ?N? ?Y+? ?-???? ?N+?-? !N+0? ? ?N? ?Y+? ?-??θ ?N+?-? !N+S? ? }N+? ?-__S? ?Y+? ?-??? ?N+?-? !N+l? ? ?N? ?Y+? ?-???? ?N+?-? !N+{? ? ?N? ?Y+? ?-???? ?N+?-? !N+?? ? ?N? ?Y+? ?-??? ?N+-? !N+?? ? ?N? ?Y+? ?-?/? ?N+1-? !N+?? ? ?N? ?Y+? ?-?H4? ?N+J-? !N+?? ? ?N? ?Y+? ?-?XM? ?N+Z-? !N+˶ ? ?N? ?Y+? ?-?i]? ?N+k-? !N+? +m? ?,o? q? ?? ?N+s-? !N+?? ? ?N? ?Y+? ?-??v? ?N+?-? !N+? ? ?N? ?Y+? ?-???? ?N+?-? !N+"? ? ?N? ?Y+? ?-???? ?N+?-? !N+1? ? ?N? ?Y+? ?-???? ?N+?-? !N+