ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ A[c@@sdZddlmZmZmZddlZddlZddlZddlm Z m Z m Z ddl m Z ddlmZddlmZddZ dS( u 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.) i(tabsolute_importtprint_functiontunicode_literalsN(tmaintwarntStdoutRefactoringTool(trefactor(t __version__(t fix_namesc C@stjdd}|jdddddd|jd d dddd |jd d dddgdd|jdddddddddd|jdddddgdd|jdddddd|jdddddd |jd!dddd"|jd#d$dddd%|jd&d'dddtdd(t}i}|j|\}}d)}t}t|d*<|j r|jrt d+n|j r|j r|j d,n|j rt td-S|jrt d.xt|D]}t |qW|sd-Sn|sGt d/d0tjt d1d0tjd2Sd3|kr|t}|jr|t d4d0tjd2Sn|jrtjntj}tjd5d6d7|t} x|jD]} d8| kr| j| qg|D]$} | jd9j| r| ^q} t| dkrSt d:d;jd<| Dd0tjd2St| d-kr|t d=d0tjd2S| j| d-qWt} |jrd>}| j|d?| j|d@| j|dAnt}|j rMt}x|j D]} | dBkrt}qd8| kr8|j| qg|D]$} | jd9j| r?| ^q?} t| dkrt d:d;jdC| Dd0tjd2St| d-krt d=d0tjd2S|j| d-qWt|| @d-kr/t dDd;jdE|| @Dd0tjd2S|rD|j!|n|}n|j!|}|| | B}t"t||t|j |j }|j#s|r|j$nKy |j%||jdG|j'Wn(t%j(k rt dFd0tjdSX|j)nt*t+|j#S(HuBMain program. Returns a suggested exit status (0, 1, 2). tusageu!pasteurize [options] file|dir ...u-Vu --versiontactionu store_truethelpu'Report the version number of pasteurizeu-au --all-importsu5Adds all __future__ and future imports to each moduleu-fu--fixuappendtdefaultu1Each FIX specifies a transformation; default: allu-ju --processesustoreittypeuintuRun 2to3 concurrentlyu-xu--nofixuPrevent a fixer from being run.u-lu --list-fixesuList available transformationsu-vu --verboseuMore verbose loggingu --no-diffsu#Don't show diffs of the refactoringu-wu--writeuWrite back modified filesu-nu --nobackupsu'Don't write backups for modified files.ulibpasteurize.fixesuprint_functionu@not writing files and not printing diffs; that's not very usefuluCan't use -n without -wiu2Available transformations for the -f/--fix option:u1At least one file or directory argument required.tfileuUse --help to show usage.iu-uCan't write to stdin.tformatu%(name)s: %(message)stlevelu.fix_ufix_{0}uOAmbiguous fixer name. Choose a fully qualified module name instead from these: u cs@s|]}d|VqdS(u N((t.0tmyf((sC/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/main.pys su1Unknown fixer. Use --list-fixes or -l for a list.ulibpasteurize.fixes.ufix_add_all__future__importsu&fix_add_future_standard_library_importufix_add_all_future_builtinsuallcs@s|]}d|VqdS(u N((RR((sC/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/main.pys su[Conflicting usage: the following fixers have been simultaneously requested and disallowed: cs@s|]}d|VqdS(u N((RR((sC/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/main.pys su+Sorry, -j isn't supported on this platform.N(,toptparset OptionParsert add_optiontFalset parse_argsRtTruetwritetno_diffsRt nobackupsterrortversiontprintRt list_fixestsortedtsyststderrtverbosetloggingtDEBUGtINFOt basicConfigtsettnofixtaddtendswithRtlentjoint all_importstfixtunionRterrorstrefactor_stdinRtNonet processestMultiprocessingUnsupportedt summarizetinttbool(targstparserR2tflagstoptionst fixer_pkgt avail_fixestfixnameRtunwanted_fixesR/tftfoundt extra_fixestprefixtexplicitt all_presentt requestedt fixer_namestrt((sC/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/main.pyR3s              $           $         (t__doc__t __future__RRRR!R$Rt lib2to3.mainRRRtlib2to3RtfutureRtlibpasteurize.fixesRR3(((sC/opt/alt/python27/lib/python2.7/site-packages/libpasteurize/main.pyt%s