kr.motd.maven.sphinx.dist.future.utils.surrogateescape$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__ ?
This is Victor Stinner's pure-Python implementation of PEP 383: the "surrogateescape" error
handler of Python 3.
Source: misc/python/surrogateescape.py in https://bitbucket.org/haypo/misc
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
codecs org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
setlocal
sys " future $ java/lang/String & utils (
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; * +
, surrogateescape . FS_ERRORS 0 org/python/core/Py 2 EmptyObjects [Lorg/python/core/PyObject; 4 5 3 6 org/python/core/PyFunction 8 f_globals Lorg/python/core/PyObject; : ; < u$1 getglobal .(Ljava/lang/String;)Lorg/python/core/PyObject; ? @
A PY3 C org/python/core/PyObject E __getattr__ G @
F H __nonzero__ ()Z J K
F L getlocal (I)Lorg/python/core/PyObject; N O
P f_lasti I R S T decode V unicode_escape X __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; Z [
F \ future/utils/surrogateescape$py ^ Lorg/python/core/PyCode; > ` _ a j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V c d
9 e u g b$2 encode j latin1 l i ` _ n b p getname r @
s chr u _unichr w f$3 bytes z org/python/core/PyTuple | ([Lorg/python/core/PyObject;)V c ~
} y ` _ ? P(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)V c ?
9 ? bytes_chr ? unichr ? surrogateescape_handler$4 ?
Pure Python implementation of the PEP 383: the "surrogateescape" error
handler of Python 3. Undecodable bytes will be replaced by a Unicode
character U+DCxx on decoding, and these are translated into the
original bytes on encoding.
? object ? start ? end ? __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
F ? (ILorg/python/core/PyObject;)V ?
?
isinstance ? UnicodeDecodeError ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; Z ?
F ? replace_surrogate_decode ? UnicodeEncodeError ? replace_surrogate_encode ?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
3 ? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; ? ?
3 ? NotASurrogateError ? org/python/core/PyException ? match (Lorg/python/core/PyObject;)Z ? ?
? ? java/lang/Throwable ? ? ` _ ? surrogateescape_handler ? Exception ? NotASurrogateError$5
__module__ ? __name__ ? getf_locals ()Lorg/python/core/PyObject; ? ?
? ? ` _ ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
3 ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? replace_surrogate_encode$6 ?
Returns a (unicode) string, not the more logical bytes, because the codecs
register_error functionality expects this.
? org/python/core/PyList ?
? __iter__ ? ?
F ? ord ? ?
newInteger (I)Lorg/python/core/PyInteger; ? ?
3 ? _le 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
F ? ?? __not__ ? ?
F ? exc ? ? ? append ? _sub ? ?
F ? __iternext__ ? ?
F ? str ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; Z ?
F ? join ? ? ` _ ? replace_surrogate_decode$7 $
Returns a (unicode) string
int _add ?
F ` _ encodefilename$8 FS_ENCODING ascii _eq ?
F enumerate unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;
3 _lt ?
F ܀ ordinal not in range(128) T(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;)Lorg/python/core/PyObject; Z
F utf-8" ?? surrogates not allowed% ` _' encodefilename) decodefilename$9+ ` _, decodefilename. [abcÿ]0 fn2 [abc\udcff]4 encoded6 lookup8 name: register_surrogateescape$10 H
Registers the surrogateescape error handler on Python 2 (only)
= None? ; 3@ lookup_errorB LookupErrorD register_errorF<