All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.motd.maven.sphinx.dist.libpasteurize.fixes.fix_kwargs$py.class Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
????1?f$0R(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
lib2to3java/lang/String
fixer_baseorg/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.Name0libfuturize.fixer_util2indentation4suitify6
DoubleStar8=%(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)sB_else_templateD_3to2kwargsF_kwargs_default_nameHorg/python/core/PyJEmptyObjectsorg/python/core/PyObject;LM	KNorg/python/core/PyFunctionP	f_globalsLorg/python/core/PyObject;RS	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ab
`cgetlocal(I)Lorg/python/core/PyObject;ef
g
newInteger(I)Lorg/python/core/PyInteger;ij
Kk__getitem__6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;mn
`otypeq__getattr__s\
`tSTARv_eqxn
`ylen{__call__S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;}~
`_gt?n
`?None?S	K?AssertionError?
makeExceptionS(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_lastiI??	?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$5params
	enumerateunpackSequence8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;
Kchildren_isn
`insert_childm(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;}
`org/python/core/PyDictionaryname!kwargs#
 ?_mod&n
`'prefix)g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject;}+
`,default.assign0__setattr__2
`3arglist5append_child7 9?	?;	transform=getf_locals??
@?	?B	makeClassa(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;DE
KF(Ljava/lang/String;)Vorg/python/core/PyFunctionTableI()V?K
JLself#Llibpasteurize/fixes/fix_kwargs$py;NO	?PRnewCode?(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;TU
KV?	?X
raw_paramsZcurr_idx\max_idx^	curr_item`	prev_itembnxtd
default_valuefkwargs_defaulth	kw_paramsjparamlfound_kwargsn	needs_fixptrNnodeuresultswparams_rawlistyi{item}
new_kwargssuite?
first_stmt?ident?must_add_kwargs?getMain()Lorg/python/core/PyCode;main([Ljava/lang/String;)V??H
????
??org/python/core/CodeLoader?createSimpleBootstrap9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;??
??runMain5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V??
K?getCodeBootstrap!()Lorg/python/core/CodeBootstrap;#org/python/core/PyRunnableBootstrap?)getFilenameConstructorReflectionBootstrap2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;??
??
call_functionS(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
??V
???
???
??
??
??org/python/core/PyRunnable? Lorg/python/compiler/APIVersion;%Lorg/python/compiler/MTime;`9 K?Lorg/python/compiler/Filename;h/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/libpasteurize/fixes/fix_kwargs.pyorg/python/core/ThreadState??[Ljava/lang/String;?CodeLineNumberTableStackMap
SourceFileRuntimeVisibleAnnotations!?J?NO?V????????x4+??+??W+??N-S-+?"N-2:+?%:+	?'?N-)S-+S--S-/S-1S-+?"N-2:+)?%:-2:++?%:-2:+-?%:-2:+/?%:-2:+1?%:+
?3?N-5S-7S-9S-+?"N-2:+5?%:-2:+7?%:-2:+9?%:+?;?N+=-?%N+
???N+A-?%N+?C?N+E-?%N+?G?N+I-?%N+??ON?QY+?U-??X???N+?-?%N++??`N+I??-__S?QY+?U-??ָ??N+?-?%N+A??`N+I??-__S?QY+?U-?????N+?-?%N+Z??`N+????u-__S-?C?G:+?%:-??+??????2	

+AZV?g???+?X?W+?+Z?^?d?^+?h?l?pr?uN+)?^w?u-_?zNY?d?W+|?^,+?h??N?l-_??N?d???+??^_???+??lN+-??N+?+|?^,+?h??N+-??N?
+?+?h+?h?pN+-??N+?+?h??uN+-??N+?+?hr?uN+)?^??u-_??N?d?"+?+?hN?l-_??N+-????+?+?hN+??^-_??NY?d?!W+?hr?uN+)?^??u-_?zN?d?	?d?+!?+?h??uN+-??N+"?+?h??uN+-??N+#?+?hN+??^-_??NY?d?"W+?hr?uN+)?^??u-_?zN?d?=+$?+?h??uN+-??N+%?+?hN?l-_??N+-???+'?+??^N+-??N+(?+(??`N+?h-__S+?h-__S??Y-??-??+????N+-???+??N+??Y????ÿ?`W+)?+?hN?l-_??N+-??+?+?hN+?h-_??N?d???+?????+??????!???!?????N!"#$%'(()?	??h??`|?????-??k??`t?w?????`*??@??`???????????`????????c?+1?ָW+2?+Z?^?d?;+?h?l?pr?uN+)?^w?u-_?zN?d???+??^_???+3?+?h?l?pr?uN+)?^ضu-_?zN?d?[+4?+?h?l?pڶu,??W+5?+?h?l?pڶu,??W+6?+?h?l??N+-??N? +8?+?h?l??N+-??N+9?+?h??N?d+??+:?+?hr?u:+)?^??u_??:?d?+;?+?hڶu,??W?+=?+?^:+???+9?-??:???+??+?^:+?????6
12345689:;=9??wV????????
??``X??``n??`????1?+E??W+F?+?^N+-??N+G?+?^N+-??N+I?+?h?l???N?C+??+J?+?hr?u:+)?^ضu_?z:?d??
+M?+?hr?u:+)?^??u_?z:Y?d?W+?h???d?+O?+?^:+??:??+P?+?hr?u:+)?^??u_?z:Y?d?	W+?h?d?6+R?+R?+?h?d?+?h??u???:+???+S?+?hr?u:+)?^??u_?z:?d?+U?+?^:+??:?+I?-??:???+X?+X?+?h?d?+?h???:+?????>EFGIJMOPRRSUIXX?Q??``???``???```???``??```;??``@??```J??``???`???``???```????e++?Ӷ%+\??lN+-?%N+^?	?N+-?%N+`??ON?QY+?U-?<??N+>-?%N+?A??\^`???+a?+?h??pN+-??N+b?+?^,+?h????N?~?:2:+??:2:+??:+c?+?hr?u:+)?^w?u_?z:?d?*+d?+?h+?h??:+??:?&?+b?-??:??w+g?+?????+k?+??^,+?h??N+-??N+m?+?h???d?+n?+?????+o?+7?^,+?h??W+{?+?h?u?l?pN+-??N+|?+?h?u?l?pN+-??N+}?+5?^,+?h??N+	-??N+?+ж^,+?h????N???:2:+
??:2:+??:+??+?h:+??^_?:?d??+??+?h?u,?l+-?^,?ݶW+??+?h?u,?l++?^,?`:+=?^? Y?`Y"?SY+
?hSY$?SY+?hS?%?(__S+	?h__S?:*S?-:?W??+??+?h?u,?l+-?^,?ݶW+??+?h?u,?l++?^,?`:+E?^? Y?`Y"?SY+
?hSY/?SY+?hS?%?(__S+	?h__S?:*S?-:?W+??+?h?u,?l+-?^,?ݶW+??+?h?u,?l++?^,?`:+A?^? Y?`Y1?SY+=?^? Y?`Y"?SY+
?hSY$?SY+?hS?%?(SY"?SY+
?hSY$?SY+?hS?%?(__S+	?h__S?:*S?-:?W+?-??:??L+??+	?hN+?h*-?4N+????N+?h?u?l?p*-?4N+??+?^,+?h??N+-??N+??+?h?d?+??+?h6??pN+
-??N+??+|?^,+
?h?u??N?l-_??NY?d?/W+
?h?u?l?pr?uN+)?^ضu-_??N?d?(+??+
?h8?u,+/?^,?ݶ?W?+??+
?h8?u,+9?^,?`N:?-__S?:*S-?-N??W+??+
?h8?u,+1?^,+?h????W?+??????~abcdbgkmno{|}??????????????????:??``?????`???``??`???``????``U??``?Z??`?`???`???????H??
?*?M*?Q?M,+S?Q?W?Y?M,[S,]S,_S,aS,cS,"S,eS,gS,+??Q!?W???M,[S,iS,kS,mS,+?+?Q?W???M,[S,iS,oS,qS,sS,+?A?Q?W???M,+Z?Q?W?C?M,tS,vS,xS,zS,|S,~S,?S,?S,?S,	?S,
"S,gS,?S,
6S,+>`?Q?W?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy