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

kr.motd.maven.sphinx.dist.libfuturize.fixes.fix_metaclass$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__?Fixer for __metaclass__ = X -> (future.utils.with_metaclass(X)) methods.

   The various forms of classef (inherits nothing, inherits once, inherints
   many) don't parse the same in the CST so we look at ALL classes for
   a __metaclass__ and if we find one normalize the inherits to all be
   an arglist.

   For one-liner classes ('class X: pass') there is no indent/dedent so
   we normalize those into having a suite.

   Moving the __metaclass__ into the classdef can also cause the class
   body to be empty so there is some special casing for that as well.

   This fixer also tries very hard to keep original indenting and spacing
   in all those corner cases.
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
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.pygram&token(lib2to3.fixer_util*Name,syms.Node0Leaf2touch_import4Call6String8Comma:parenthesize<org/python/core/Py>EmptyObjectsorg/python/core/PyObject;@A	?Borg/python/core/PyFunctionD	f_globalsLorg/python/core/PyObject;FG	Hhas_metaclass$1? we have to check the cls_node without changing it.
        There are two possiblities:
          1)  clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
          2)  clsdef => simple_stmt => expr_stmt => Leaf('__meta')
    Kgetlocal(I)Lorg/python/core/PyObject;MN
OchildrenQorg/python/core/PyObjectS__getattr__.(Ljava/lang/String;)Lorg/python/core/PyObject;UV
TW__iter__()Lorg/python/core/PyObject;YZ
T[(ILorg/python/core/PyObject;)V#]
^type`	getglobalbV
csuitee_eq6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;gh
Ti__nonzero__()Zkl
Tm
has_metaclasso__call__S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;qr
Tsf_lastiIuv	wsimple_stmty
newInteger(I)Lorg/python/core/PyInteger;{|
?}__getitem__h
T?	expr_stmt?
isinstance?m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;q?
T?value?
__metaclass__?True?__iternext__?Z
T?False?"libfuturize/fixes/fix_metaclass$py?Lorg/python/core/PyCode;J?	??j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V??
E?fixup_parse_tree$2f one-line classes don't get a suite in the parse tree so we add
        one to normalize the tree
    ?None?G	??	enumerate?unpackSequence8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;??
??COLON?
ValueError?No class suite and no ':'!?
makeException9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;??
??org/python/core/PyList?([Lorg/python/core/PyObject;)V??
??_add?h
T?append_child?clone?9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;q?
T?remove?__getslice__j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
T???	??fixup_parse_tree?fixup_simple_stmt$3? if there is a semi-colon all the parts count as part of the same
        simple_stmt.  We just want the __metaclass__ part so we move
        everything efter the semi-colon into its own simple_stmt node
    ?SEMI?insert_child?prefix?__setattr__?
T???	??fixup_simple_stmt?remove_trailing_newline$4NEWLINE???	??remove_trailing_newline?find_metas$5No class suite!?list?org/python/core/PyUnicode?/(Ljava/lang/String;)Lorg/python/core/PyUnicode;	?
???(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;q?
T?org/python/core/PyTuple?
??java/util/Arrays?fill(([Ljava/lang/Object;Ljava/lang/Object;)V??
??java/lang/Object?
f_savedlocals[Ljava/lang/Object;??	?getGeneratorInput()Ljava/lang/Object;?
org/python/core/PyExceptionjava/lang/Throwable??	?
find_metas	fixup_indent$6? If an INDENT is followed by a thing with a prefix then nuke the prefix
        Otherwise we get in trouble when removing __metaclass__ at suite start
    popINDENTDEDENT_neh
Textend?	?fixup_indentgetnameV
 BaseFix"FixMetaclass$FixMetaclass$7
__module__'__name__)
BM_compatible+
    classdef
    -PATTERN/transform$8__not__2Z
T3?len6arglist8	set_child:RPAR<)>LPAR@(BUnexpected class definitionD	metaclassFfuture.utilsHwith_metaclassJ L	'NewBase'NatomPLBRACER{TRBRACEV}Xg(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject;qZ
T[replace]pass_
a_gtch
Td1?	?f	transformhgetf_localsjZ
k&?	?m	makeClassa(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;op
?q(Ljava/lang/String;)Vorg/python/core/PyFunctionTablet()V?v
uwself$Llibfuturize/fixes/fix_metaclass$py;yz	?{}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;?
???	??parent?node?	expr_node?	left_side?cls_node?i?	move_node?	stmt_node?semi_ind?new_expr?new_stmt?	new_leaf1?	old_leaf1?simple_node?	left_node?kids?yresults?last_metaclass?stmt?	text_type?meta_txt?orig_meta_prefix?	arguments?base?bases?	pass_leaf?getMain()Lorg/python/core/PyCode;main([Ljava/lang/String;)V??s
????
??org/python/core/CodeLoader?createSimpleBootstrap9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;??
??runMain5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V??
??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;
??J
???
???
???
???
??
??&
??1
??org/python/core/PyRunnable? Lorg/python/compiler/APIVersion;%Lorg/python/compiler/MTime;`9 K?Lorg/python/compiler/Filename;i/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/libfuturize/fixes/fix_metaclass.pyorg/python/core/ThreadState??[Ljava/lang/String;?CodeLineNumberTableStackMap
SourceFileRuntimeVisibleAnnotations!?u?
yz?J??????????&?1???p+??+??W+ ??N-S-+?"N-2:+?%:+!?'?N-)S-+?"N-2:+)?%:+"?+	?N--S-/S-1S-3S-5S-7S-9S-;S-=S-+?"N-2:+-?%:-2:+/?%:-2:+1?%:-2:+3?%:-2:+5?%:-2:+7?%:-2:+9?%:-2:+;?%:-2:+=?%:+&??CN?EY+?I-??L???N+p-?%N+9??CN?EY+?I-??????N+?-?%N+S??CN?EY+?I-??θ??N+?-?%N+k??CN?EY+?I-????N+?-?%N+p??CN?EY+?I-???N+
-?%N+???CN?EY+?I-?
???N+-?%N+???TN+?!#?X-__S%-?n?r:+%?%:-??+?x????. !"&9Skp??J???++?L?W+,?+?PR?X?\N?v+?_+-?+?Pa?X:+/?df?X_?j:?n?"+.?+p?d,+?P?t:+?x?+/?+?Pa?X:+/?dz?X_?j:Y?n?W+?PR?X?n??+0?+?PR?X?~??:+?_:+1?+?Pa?X:+/?d??X_?j:Y?n?W+?PR?X?n??+2?+?PR?X?~??:+?_:+3?+??d,+?P+3?d??Y?n?W+?P??X:??_?j:?n?+5?+??d:+?x???+,?-??:??+6?+??d:+?x??2+,-./01235,6??#??TTu??TT???TTT??TTTt??TTT???TT???TT???T??
+?+?Pa?X:+/?df?X_?j:?n?+@?+?x???+=?-??:???+C?+??d,+?PR?X?t?\N?]??:2:+?_:2:+?_:+D?+?Pa?X:+)?d??X_?j:?n?	?0?+C?-??:???+G?+??d,???t???+J?+1?d,+/?df?X??Y?C????N+-?_N?c+L?+?PR?X+?P?~????N+-?_N+M?+?P??X,+?P??X,???tW+N?+?PöX,??W+K?+?PR?X+?P?~???Ƕn??|+O?+?P??X,+?P?tW+P?+?PN+-?_N+?x????B<=>@=CDCGJLMNKOP??#??TTe??T???TT????TT??TTL??T???T??
E+W?θW+X?+??d,+?PR?X?t?\N?]??:2:+?_:2:+?_:+Y?+?Pa?X:+)?dжX_?j:?n?	?&?+X?-??:???+\?+?x???+^?+?PöX,??W+_?+1?d,+/?d??X??Y?C????N+-?_N+`?+1?d,+/?dz?X??Y?TY+?PS????N+-?_N?_+b?+?PR?X+?P??N+-?_N+c?+?P??X,+?P??X,???tW+d?+?PöX,??W+a?+?PR?X+?P?Ƕn???+e?+?PҶX,+?P+?P??W+f?+?PR?X?~??R?X?~??N+-?_N+g?+?PR?X?~??R?X?~??N+	-?_N+h?+	?PԶXN+?P?-??N+?x????BWXYX\^_`bcdaefgh?s-??TT????T???TT%??T???T???t+l?+?PR?XY?n?-W+?PR?X?~??a?XN+)?d޶X-_?jN?n?'+m?+?PR?X?~??öX,??W?+?x????
lm?#A??Tk????lا?+r?+?PR?X?\N?<+?_+s?+?Pa?X:+/?df?X_?j:?n?	?0?+r?-??:???+v?+??d,??t???+y?+?d,+??d,+?PR?X?t?t?\N????:2:+?_:2:+?_:+z?+?Pa?X:+/?dz?X_?j:Y?n?W+?PR?X?n??+{?+?PR?X?~??:+?_:+|?+?Pa?X:+/?d??X_?j:Y?n?W+?PR?X?n?3+~?+?PR?X?~??:+?_:+?+??d,+?P+3?d??Y?n?W+?P??X:???_?j:?n??+??+۶d,+?P+?P+?P??W+??+?d,+?P?tW+??+???T:+?P__S+?P__S+?P__S??Y????+?x??:-SS+???+??:2?TN2?T:+?Y?????TW???+y?-??:???+?x???+?x????C???C?????>rsrvyz{|~????y?>????TTPS??T}??TT???TT???TTTi??TTT???TTTo?????TT?????TT????TT????TT?????b?+??
?W+??+?PR?X?~??N+-?_N?S+??+?P?X,??N+-?_N+??+?Pa?XN+)?d?X-_?jN?n?	??+??+?P?n?????+??+?P?X,??N+-?_N+??+??d,+?P+3?d??Y?n?"W+?Pa?XN+)?d?X-_?N?n?H+??+?PԶX?n?!+????N+?P?-??N?+??+?x???+??+?P?X,+?PR?X?~?ǶtW+??+?P?n??+?x????2??????????????	4???????????????T5??E??o??&??i+(+*?!?%+??+??!N+,-?%N+??.?N+0-?%N+???CN?EY+?I-?g??N+i-?%N+?l?????1?Z	U+??+p?d,+?P?t?4?n?+??+?x???+??+˶d,+?P?tW+??+5?dN+-?_N+??+
?d,+?P?t?\N?l??:2:+?_:2:+?_:2:+?_:+??+?P:+?_:+??+?PöX,??W+??-??:???+??+?PR?X?~??a?XN+-?_N+??+7?d,+?PR?X?tN?~-_?jN?n??+??+?PR?X?~??a?XN+/?d9?X-_?jN?n?(+??+?PR?X?~??N+-?_N??+??+?PR?X?~????X,??N+	-?_N+??+1?d,+/?d9?X??Y?TY+	?PS????N+-?_N+??+?P;?X,?~+?P??W??+??+7?d,+?PR?X?tN?~-_?jN?n?W+??+1?d,+/?d9?X??Y?C????N+-?_N+??+?PҶX,?~+?P??W?+¶+7?d,+?PR?X?tN?~-_?jN?n??+Ŷ+1?d,+/?d9?X??Y?C????N+-?_N+ƶ+?PҶX,?~+3?d,+)?d=?X??????W+Ƕ+?PҶX,?~+?P??W+ȶ+?PҶX,?~+3?d,+)?dA?XC?????W?+ʶ+??d,E??t???+Ͷ+?PR?X?~??R?X?~??N+
-?_N+ζG?N+
?P?-??N+϶+
?PԶXN+-?_N+Ҷ+5?d,I??K??+?P??W+Զ+?PR?X?~??R?X?~????X,??N+-?_N+ն??N+?P?-??N+׶??Y?TY+?PS??N+
-?_N+ٶ+?PR?X?n?(+ڶ+7?d,+?PR?X?tN?~-_?jN?n?N+۶+?PR?X?~????X,??N+-?_N+ܶM??N+?P?-??N?r+?+=?d,+?P??X,???tN+-?_N+?M??N+?P?-??N+?+7?d,?TN+-?d,a??t-__S??Y?TY+9?d,O??tSY+;?d,??SY+?PSY+;?d,??SY+1?d,?T:+/?dQ?X__S??Y?TY+3?d,+)?dS?XU???SY+3?d,+)?dW?XY???S??__SM??__S?:?S?\:S??-__SM??-__S?:?S-?\NN+-?_N+?+
?P?X,??Y?TY+;?d,??SY+?PS???tW?+?+?P^?X,+7?d,+-?d,?TNK??-__S+?PԶX-__S?:?S-?\N+
?P???tW+??+?d,+?P?tW+??+?PR?X?4?n??+??+?PöX,??W+??+3?d,+?P`???N+-?_N+??+?PN+?P?-??N+??+?P??X,+?P?tW+??+?P??X,+3?d,+)?d޶Xb????tW?+?+7?d,+?PR?X?tN?~-_?eNY?n?aW+?PR?X??~??a?XN+)?d?X-_?jNY?n?.W+?PR?X?~??a?XN+)?d?X-_?jN?n??+?+3?d,+?P`???N+-?_N+?+?PҶX,?~+?P??W+?+?PҶX,?~+3?d,+)?d޶Xb?????W?+?x?????3????????????????????????????????????????????????/??{??TT???T???T/??T2??T???T???T???TQ??T????????:???????T	L????s?P
D*?x*?|?M,+~?|?????M,?S,?S,?S,?S,+p&?|?????M,?S,?S,?S,fS,?S,+?9?|????
?M,?S,?S,?S,?S,?S,?S,?S,?S,?S,	?S,+?S?|?????M,?S,+?k?|?????M,?S,?S,?S,?S,?S,?S,+
p?|!????M,fS,?S,?S,+??|????M,+%??|???n?M,?S,?S,?S,?S,fS,?S,?S,?S,9S,	?S,
?S,?S,GS,
?S,?S,?S,?S,+i??|???g???????	???!??Y????¸?*?̱	?????԰???l^*,-?X48<@DHLPT?ذ?ڰ?ܰ?ް?శⰶ䰶氶????
8????<????@????D????H????L????P????T????X????\?????????I???J???s?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy