kr.motd.maven.sphinx.dist.libpasteurize.fixes.fix_kwargs$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__ g
Fixer for Python 3 function parameter syntax
This fixer is rather sensitive to incorrect py3k syntax.
org/python/core/PyUnicode fromInterned /(Ljava/lang/String;)Lorg/python/core/PyUnicode;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
lib2to3 java/lang/String
fixer_base org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ lib2to3.fixer_util & token ( String * Newline , Comma . Name 0 libfuturize.fixer_util 2 indentation 4 suitify 6
DoubleStar 8 =%(name)s = %(kwargs)s['%(name)s']; del %(kwargs)s['%(name)s'] : _assign_template < 'if '%(name)s' in %(kwargs)s: %(assign)s > _if_template @ else: %(name)s = %(default)s B _else_template D _3to2kwargs F _kwargs_default_name H org/python/core/Py J EmptyObjects [Lorg/python/core/PyObject; L M K N org/python/core/PyFunction P f_globals Lorg/python/core/PyObject; R S T gen_params$1 ?
Generator that yields tuples of (name, default_value) for each parameter in the list
If no default is given, then it is default_value is None (not Leaf(token.NAME, 'None'))
W __debug__ Y getglobal .(Ljava/lang/String;)Lorg/python/core/PyObject; [ \
] org/python/core/PyObject _ __nonzero__ ()Z a b
` c getlocal (I)Lorg/python/core/PyObject; e f
g
newInteger (I)Lorg/python/core/PyInteger; i j
K k __getitem__ 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; m n
` o type q __getattr__ s \
` t STAR v _eq x n
` y len { __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; } ~
` _gt ? n
` ? None ? S K ? AssertionError ?
makeException S(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
K ? (ILorg/python/core/PyObject;)V # ?
? prev_sibling ? NAME ? _ne ? n
` ? _iadd ? n
` ? ? _isnot ? n
` ?
DOUBLESTAR ? value ? next_sibling ? EQUAL ? org/python/core/PyTuple ? ([Lorg/python/core/PyObject;)V ? ?
? ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? f_lasti I ? ? ? java/lang/Object ?
f_savedlocals [Ljava/lang/Object; ? ? ? getGeneratorInput ()Ljava/lang/Object; ? ?
? org/python/core/PyException ? java/lang/Throwable ? _lt ? n
` ? !libpasteurize/fixes/fix_kwargs$py ? Lorg/python/core/PyCode; V ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ? ?
Q ?
gen_params ? getname ? \
? remove_params$2 ?
Removes all keyword-only args from the params list and a bare star, if any.
Does not add the kwargs dict if needed.
Returns True if more action is needed, False if not
(more action is needed if no kwargs dict exists)
? COMMA ? remove ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; } ?
` ? __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
` ? __iter__ ()Lorg/python/core/PyObject; ? ?
` ? False ? __iternext__ ? ?
` ? True ? ? ? ? ?
remove_params ? needs_fixing$3 ?
Returns string with the name of the kwargs dict if the params after the first star need fixing
Otherwise returns empty string
? __not__ ? ?
` ? ? ? ? ? ? needs_fixing ? BaseFix ? FixKwargs ? FixKwargs$4
__module__ __name__ run_order ^funcdef< 'def' NAME parameters< '(' arglist=typedargslist< params=any* > ')' > ':' suite=any > PATTERN
transform$5 params
enumerate unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;
K children _is n
` insert_child m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; }
` org/python/core/PyDictionary name! kwargs#
? _mod&