kr.motd.maven.sphinx.dist.babel.messages.checkers$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__ ?
babel.messages.checkers
~~~~~~~~~~~~~~~~~~~~~~~
Various routines that help with validation of translations.
:since: version 0.9
:copyright: (c) 2013 by the Babel Team.
:license: BSD, see LICENSE for more details.
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
babel.messages.catalog java/lang/String TranslationError
PYTHON_FORMAT org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; ! "
# setlocal %
&
babel._compat ( string_types * izip , org/python/core/PyList . org/python/core/PyObject 0 set 2 getname .(Ljava/lang/String;)Lorg/python/core/PyObject; 4 5
6 i 8 d : u < ([Lorg/python/core/PyObject;)V > ?
/ @ __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; B C
1 D x F X H f J F L g N G P _string_format_compatibilities R org/python/core/Py T EmptyObjects [Lorg/python/core/PyObject; V W U X org/python/core/PyFunction Z f_globals Lorg/python/core/PyObject; \ ] ^
num_plurals$1 0Verify the number of plurals in the translation. a getlocal (I)Lorg/python/core/PyObject; c d
e pluralizable g __getattr__ i 5
1 j __not__ ()Lorg/python/core/PyObject; l m
1 n __nonzero__ ()Z p q
1 r
isinstance t getglobal v 5
w string y m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; B {
1 | /Found plural forms for non-pluralizable message ~
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
U ? f_lasti I ? ? ? None ? ] U ? ? _is 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
1 ? (ILorg/python/core/PyObject;)V % ?
? org/python/core/PyTuple ? list ? tuple ?
? @ len ? num_plurals ? _ne ? ?
1 ? *Wrong number of plural forms (expected %d) ? _mod ? ?
1 ? babel/messages/checkers$py ? Lorg/python/core/PyCode; ` ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V > ?
[ ? python_format$2 9Verify the format string placeholders in the translation. ?
python-format ? flags ? _notin ? ?
1 ? id ? __iter__ ? m
1 ? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject; ? ?
U ? _validate_format ? __iternext__ ? m
1 ? ? ? ? ?
python_format ? _validate_format$3?Test format string `alternative` against `format`. `format` can be the
msgid of a message and `alternative` one of the `msgstr`\s. The two
arguments are not interchangeable as `alternative` may contain less
placeholders if `format` uses named placeholders.
The behavior of this function is undefined if the string does not use
string formattings.
If the string formatting of `alternative` is compatible to `format` the
function returns `None`, otherwise a `TranslationError` is raised.
Examples for compatible format strings:
>>> _validate_format('Hello %s!', 'Hallo %s!')
>>> _validate_format('Hello %i!', 'Hallo %d!')
Example for an incompatible format strings:
>>> _validate_format('Hello %(name)s!', 'Hallo %s!')
Traceback (most recent call last):
...
TranslationError: the format strings are of different kinds
This function is used by the `python_format` checker.
:param format: The original format string
:param alternative: The alternative format string that should be checked
against format
:raises TranslationError: on formatting errors
? _parse$4 finditer ? groups ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; B ?
1 ? % ? _eq ? ?
1 ? append ? str ? ? ? ? ?
_compatible$5 True ? _in ? ?
1 ? False ? ? ? ? ? _check_positional$6 5format string mixes positional and named placeholders ? bool ? ? ? ? ? map ? placeholders are incompatible ? )the format strings are of different kinds ? -positional format placeholders are unbalanced ? enumerate ? Dincompatible format for placeholder %d: %r and %r are not compatible ?
newInteger (I)Lorg/python/core/PyInteger; ? ?
U ? _add ?
1 dict unknown named placeholder %r __getitem__ ?
1 Dincompatible format for placeholder %r: %r and %r are not compatible ? ? ?
_find_checkers$7
pkg_resources working_set setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;
U ImportError org/python/core/PyException match (Lorg/python/core/PyObject;)Z
iter_entry_points babel.checkers" load$ java/lang/Throwable& ? ?( _find_checkers* checkers, (Ljava/lang/String;)V org/python/core/PyFunctionTable/ ()V >1
02 self Lbabel/messages/checkers$py;45 ?6 8 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;:;
U< ? ?> catalog@ messageB msgstrsD msgidsF msgidH msgstrJ formatL alternativeN _parseP _compatibleR _check_positionalT aV bX a_positionalZ b_positional\ idx^ _` firstb secondd type_mapf nameh typecharj resultl resultso
positionalq chars entry_pointu getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? >.
?|wx
?~ org/python/core/CodeLoader? createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;??
?? runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V??
U? 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;
?? `
?? ?
?? ?
?? ?
?? ?
?? ?
??
?? org/python/core/PyRunnable? Lorg/python/compiler/APIVersion; value % Lorg/python/compiler/MTime; `9Q? Lorg/python/compiler/Filename; a/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/babel/messages/checkers.py org/python/core/ThreadState? W java/lang/Object? Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ?0 ? 45 ? ` ? ? ? ? ? ? ? ? ? ? ? ?
? :
+? ? +? ? W+? ? N-S-S-+? $N-2:+? ':-2:+? ':+? )? N-+S--S-+? $N-2:++? ':-2:+-? ':+? ? /Y? 1Y+3? 7,? /Y? 1Y9? SY;? SY=? S? A? ESY+3? 7,? /Y? 1YG? SYI? S? A? ESY+3? 7,? /Y? 1YK? SYM? SYO? SYQ? S? A? ES? AN+S-? 'N+? ? YN? [Y+? _-? ?b? ? ?N+?-? 'N+.? ? YN? [Y+? _-? ??? ? ?N+?-? 'N+>? ? YN? [Y+? _-?̸ ? ?N+?-? 'N+ ?? ? YN? [Y+? _-?)? ?N++-? 'N+ ?? ++? 7,? ?N+--? 'N+? ?? ?? ? &