kr.motd.maven.sphinx.dist.chardet.cli.chardetect$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
???? 1X f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__
Script which takes one or more file paths and reports on their detected
encodings
Example::
% chardetect somefile someotherfile
somefile: windows-1252 with confidence 0.5
someotherfile: ascii with confidence 1.0
If no paths are provided, it takes its input from stdin.
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
__future__ java/lang/String absolute_import print_function unicode_literals org/python/core/imp !
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; # $
" % setlocal '
( argparse * importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; , -
" . sys 0 chardet 2 __version__ 4 chardet.compat 6 PY2 8 chardet.universaldetector : UniversalDetector < org/python/core/PyObject > stdin @ org/python/core/PyUnicode B /(Ljava/lang/String;)Lorg/python/core/PyUnicode; D
C E org/python/core/PyFunction G f_globals Lorg/python/core/PyObject; I J K description_of$1 ?
Return a string describing the probable encoding of a file or
list of strings.
:param lines: The lines to get the encoding of.
:type lines: Iterable of bytes
:param name: Name of file or collection of lines
:type name: str
N getglobal .(Ljava/lang/String;)Lorg/python/core/PyObject; P Q
R __call__ 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; T U
? V (ILorg/python/core/PyObject;)V ' X
Y getlocal (I)Lorg/python/core/PyObject; [ \
] __iter__ ()Lorg/python/core/PyObject; _ `
? a bytearray c S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; T e
? f feed h __getattr__ j Q
? k done m __nonzero__ ()Z o p
? q __iternext__ s `
? t close v result x decode z getfilesystemencoding | ignore ~ m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; T ?
? ? encoding ? __getitem__ 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
? ? {0}: {1} with confidence {2} ? format ?
confidence ? ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; T ?
? ? f_lasti I ? ? ? {0}: no result ? chardet/cli/chardetect$py ? Lorg/python/core/PyCode; M ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ? ?
H ? description_of ? None ? getname ? Q
? main$2 ?
Handles command line arguments and gets things started.
:param argv: List of arguments, as if specified on the command-line.
If None, ``sys.argv[1:]`` is used instead.
:type argv: list of str
? ArgumentParser ? VTakes one or more file paths and reports their detected encodings ? description ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; T ?
? ? add_argument ? input ? ^File whose encoding we would like to determine. (default: stdin) ? FileType ? rb ? * ? org/python/core/PyList ? buffer ? ([Lorg/python/core/PyObject;)V ? ?
? ? help ? type ? nargs ? default ? --version ? version ? %(prog)s {0} ? action ?
parse_args ? isatty ? print ? 0You are running chardetect interactively. Press ? 8CTRL-D twice at the start of a blank line to signal the ? _add ? ?
? ? 4end of your input. If you want help, run chardetect ? --help
? stderr ? file ? name ? org/python/core/Py ? ? J ? ? ? ? ? ? main ? __name__ ? __main__ ? _eq ? ?
? ? (Ljava/lang/String;)V org/python/core/PyFunctionTable ? ()V ?
? self Lchardet/cli/chardetect$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;
? ? ?
lines u line argv parser args f getMain ()Lorg/python/core/PyCode; ([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/PyRunnableBootstrap1 )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;34
25
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?9 M
?; ?
?= org/python/core/PyRunnable? Lorg/python/compiler/APIVersion; value % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; `/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/chardet/cli/chardetect.py org/python/core/ThreadStateI java/lang/ThrowableK [Lorg/python/core/PyObject;M [Ljava/lang/String;O java/lang/ObjectQ Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ? ? @ ? M ? ? ? S ?+? ? +? ? W+? ? N-S-S- S-+? &N-2:+? ):-2:+? ):-2:+ ? ):+? ++? /N++-? )N+? 1+? /N+1-? )N+? 3? N-5S-+? &N-2:+5? ):+? 7? N-9S-+? &N-2:+9? ):+? ;? N-=S-+? &N-2:+=? ):+? ? ?NA? F-__S? HY+? L-? ?O? F? ?N+?-? )N+6? ? ?N+?? ?-__S? HY+? L-? ??? F? ?N+?-? )N+T? +?? ?N?? F-_? ?N? r? +U? +?? ?,? WW? +? ?? ? T . 6 T UU ? ? J M S N ?+#? O? FW+$? +=? S,? WN+-? ZN+%? +? ^? bN? a+? Z+&? +d? S,+? ^? g:+? Z:+'? +? ^i? l,+? ^? gW+)? +? ^n? l? r? ? ?+%? -? u:???++? +? ^w? l,? WW+,? +? ^y? lN+-? ZN+-? +9? S? r? 7+.? +? ^{? l,+1? S}? l,? W? F? ?N+-? ZN? +/? +? ^?? F? ?? r? >+0? ?? F?? l,+? ^+? ^?? F? ?+? ^?? F? ?? ?N+? ?-?+3? ?? F?? l,+? ^? gN+? ?-? T : # $ % &