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

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

There is a newer version: 2.10.0
Show newest version
????1f$0R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;__doc__?
pasteurize: automatic conversion of Python 3 code to clean 2/3 code
===================================================================

``pasteurize`` attempts to convert existing Python 3 code into source-compatible
Python 2 and 3 code.

Use it like this on Python 3 code:

  $ pasteurize --verbose mypython3script.py

This removes any Py3-only syntax (e.g. new metaclasses) and adds these
import lines:

    from __future__ import absolute_import
    from __future__ import division
    from __future__ import print_function
    from __future__ import unicode_literals
    from future import standard_library
    standard_library.install_hooks()
    from builtins import *

To write changes to the files, use the -w flag.

It also adds any other wrappers needed for Py2/3 compatibility.

Note that separate stages are not available (or needed) when converting from
Python 3 with ``pasteurize`` as they are when converting from Python 2 with
``futurize``.

The --all-imports option forces adding all ``__future__`` imports,
``builtins`` imports, and standard library aliases, even if they don't
seem necessary for the current state of each module. (This can simplify
testing, and can reduce the need to think about Py2 compatibility when editing
the code further.)

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/Stringabsolute_importprint_functionunicode_literalsorg/python/core/imp!
importFrom\(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;#$
"%setlocal'
(sys*	importOneH(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;,-
".logging0optparse2lib2to3.main4main6warn8StdoutRefactoringTool:lib2to3<refactor>future@__version__Blibpasteurize.fixesD	fix_namesForg/python/core/PyObjectHNoneJgetname.(Ljava/lang/String;)Lorg/python/core/PyObject;LM
Norg/python/core/PyFunctionP	f_globalsLorg/python/core/PyObject;RS	Tmain$1BMain program.

    Returns a suggested exit status (0, 1, 2).
    Worg/python/core/PyUnicodeY/(Ljava/lang/String;)Lorg/python/core/PyUnicode;	[
Z\	getglobal^M
_OptionParsera__getattr__cM
Id!pasteurize [options] file|dir ...fusageh__call__g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject;jk
Il(ILorg/python/core/PyObject;)V'n
ogetlocal(I)Lorg/python/core/PyObject;qr
s
add_optionu-Vw	--versiony
store_true{'Report the version number of pasteurize}actionhelp?-a?
--all-imports?5Adds all __future__ and future imports to each module?-f?--fix?append?org/python/core/PyList?org/python/core/Py?EmptyObjectsorg/python/core/PyObject;??	??([Lorg/python/core/PyObject;)V??
??1Each FIX specifies a transformation; default: all?default?-j?--processes?store?
newInteger(I)Lorg/python/core/PyInteger;??
??int?Run 2to3 concurrently?type?-x?--nofix?Prevent a fixer from being run.?-l?--list-fixes?List available transformations?-v?	--verbose?More verbose logging?
--no-diffs?#Don't show diffs of the refactoring?-w?--write?Write back modified files?-n?--nobackups?False?'Don't write backups for modified files.?org/python/core/PyDictionary?
??
parse_args?S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;j?
I?unpackSequence8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;??
??setderef?n
?True?__setitem__7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V??
I?write?__not__()Lorg/python/core/PyObject;??
I?__nonzero__()Z??
I?no_diffs?@not writing files and not printing diffs; that's not very useful?	nobackups?error?Can't use -n without -w?version?print?f_lastiI	
list_fixes2Available transformations for the -f/--fix option:sorted__iter__
?
I__iternext__
?
I1At least one file or directory argument required.stderrfileUse --help to show usage.-_in6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;
ICan't write to stdin.verbose DEBUG"INFO$basicConfig&%(name)s: %(message)s(format*level,set.f$2getderef1r
2.fix_4_add6
I7java/lang/Object9
f_savedlocals[Ljava/lang/Object;;<	=getGeneratorInput()Ljava/lang/Object;?@
Aorg/python/core/PyExceptionCjava/lang/ThrowableEJS	?Glibpasteurize/main$pyILorg/python/core/PyCode;0K	JL
getclosureNr
O?(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;[Lorg/python/core/PyObject;)V?Q
QRnofixTjava/util/ArraysVfill(([Ljava/lang/Object;Ljava/lang/Object;)VXY
WZ9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;j\
I]all_imports_libpasteurize.fixes.aaddcfix_add_all__future__importse&fix_add_future_standard_library_importgfix_add_all_future_builtinsi_subk
Il_orn
IoT(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;)Lorg/python/core/PyObject;jq
Irerrorstrefactor_stdinv	processesx?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;jz
I{setExceptionM(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;}~
?MultiprocessingUnsupported?match(Lorg/python/core/PyObject;)Z??
D?	__debug__?_gt?
I?AssertionError?
makeExceptionS(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyException;??
??+Sorry, -j isn't supported on this platform.?	summarize?bool?VK	J?j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V??
Q?(Ljava/lang/String;)Vorg/python/core/PyFunctionTable?()V??
??selfLlibpasteurize/main$py;??	J??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;??
??K	J?args?parser?flags?options?avail_fixes?fixname?unwanted_fixes?	_(118_25)?extra_fixes?prefix?fixer_names?rt?	fixer_pkg?_(x)?fix?	?getMain()Lorg/python/core/PyCode;([Ljava/lang/String;)VI??
J???
J?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?V
J?0
J?org/python/core/PyRunnable? Lorg/python/compiler/APIVersion;value%Lorg/python/compiler/MTime;`9 K?Lorg/python/compiler/Filename;\/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/libpasteurize/main.pyorg/python/core/ThreadState??<CodeLineNumberTableStackMap
SourceFileRuntimeVisibleAnnotations!J????KVK0K???+??+%??W+'??N-S-S- S-+?&N-2:+?):-2:+?):-2:+ ?):+)?++?/N++-?)N+*?1+?/N+1-?)N++?3+?/N+3-?)N+,?5?N-7S-9S-;S-+?&N-2:+7?):-2:+9?):-2:+;?):+-?=?N-?S-+?&N-2:+??):+/?A?N-CS-+?&N-2:+C?):+0?E?N-GS-+?&N-2:+G?):+3??IN+K?O-__S?QY+?U-??X?]??N+7-?)N+??H?*
%')*+,-/03V??+7?X?]W+9?+3?`b?e,?INg?]-__S?:iS-?mNN+-?pN+:?+?tv?e,?INx?]-__Sz?]-__S|?]-__S~?]-__S?:?S?S-?mNW+?+?tv?e,?IN??]-__S??]-__S??]-__S??Y????-__S??]-__S?:?S?S?S-?mNW+@?+?tv?e,?IN??]-__S??]-__S??]-__S??-__S??]-__S??]-__S?:?S?S?S?S-?mNW+B?+?tv?e,?IN??]-__S??]-__S??]-__S??Y????-__S??]-__S?:?S?S?S-?mNW+D?+?tv?e,?IN??]-__S??]-__S|?]-__S??]-__S?:?S?S-?mNW+H?+?tv?e,?IN??]-__S??]-__S|?]-__S??]-__S?:?S?S-?mNW+J?+?tv?e,?IN¸]-__S|?]-__Sĸ]-__S?:?S?S-?mNW+L?+?tv?e,?INƸ]-__Sȸ]-__S|?]-__Sʸ]-__S?:?S?S-?mNW+N?+?tv?e,?IN̸]-__Sθ]-__S|?]-__S+ж`-__SҸ]-__S?:?S?S?S-?mNW+R?+ж`N+-?pN+S???Y????N+-?pN+T?+?t׶e,+?t??N-??:2:+?p:2:+?p:N+U?E?]N+-??N+V?+G?`N+-?pN+W?+?`N+?t?]-??N+Y?+?t?e??Y??W+?t?e??+Z?+9?`,??]??W?+[?+?t?e??Y??W+?t??e?? +\?+?t??e,??]??W?+]?+?t??e??,+^?+??`,+C?`??W+_???N+?-?+`?+?t?e???+a?+??`,?]??W+b?+	?`,+?t?ڶ:?"+?p+c?+??`,+?t??W+b??:???+d?+?t????+e???N+?-??+f?+?t?????+g?+??`,?I:?]__S++?`?e__S?:S?m:W+i?+??`,?I:?]__S++?`?e__S?:S?m:W+j???N+?-?+k??]:+?t_?:???+l?+?`:+?p:+m?+?t?e??^+n?+??`,?I:?]__S++?`?e__S?:S?m:W+o???N+?-??+r?+r?+?t!?e??+1?`#?e?+1?`%?e:+?p:+s?+1?`'?e,?I:)?]__S+?t__S?:+S-S?m:W+v?+/?`,+v??QY+?U??:?M?I:+?PS?S:+?tU?e_?,_???[??:+?p:+x?+/?`,?^:+
?p:+y?+?t`?e???+z?b?]:+?p:+{?+
?td?e,+?tf?]?8??W+|?+
?td?e,+?th?]?8??W+}?+
?td?e,+?tj?]?8??W?+?+?t+
?t+?t?m?p:+?p:+??+;?`,?I:+	?`,+?t??__S+?t__S+/?`,?^__S+?t??e__S+?t?e??__S?s:+
?p:+??+
?tu?e????E+??+?t??+??+
?tw?e,?^W??+??+
?t??e,+?t+?t?e+K?`+?ty?e?|W??+??:+??`??e????+??+??`??2+?ty?e:??_??:???H+??`_???+??+??`,?I:??]__S++?`?e__S?:S?m:W+????N+?-???+??+
?t??e,?^W?+??+??`,+??`,+
?tu?e?ڶ?N+?-?
S
?
?F??79:<>@BDHJLNRSTUVWYZ[\]^_`abcbdefgijklmnorrsvvxyz{|}????????????J??IJ??5J??IXJ???J???J?IIJ?II:J?II=J?:I?J?:I?J?I?J?I?J?I?J?II	dJ?Q
SJ?Q
?J?QF
?J?DQGFJJ?DQMJ?QhJ?Q0?S???+v?+?t?N?s+?p+v?+v?+?35?]?8+?t?8+??::-SS+?>?+?>:2?IN2?I:+?BY?D??F??IW+v?-?:???+??H?+?????`???`????vvvvqJ?J?II[J??J?II?:?J?I?J?????
?*??*???M,+????????M,?S,?S,wS,?S,?S,?S,?S,-S,?S,	?S,
?S,?S,?S,
?S,?S,+73???M,?S,?????M,?S,?S,+?v???M,?S,!???M???????	6??!?JYҷԶָ?*??	???J??????.*,-?( $?찶??f J?J?$J?J?(J?J?,J?J????I???J???s?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy