/opt/cloudlinux/venv/lib/python3.11/site-packages/libfuturize/__pycache__
NameSizeModeActions
fixer_util.cpython-311.pyc212380644editdlrm
main.cpython-311.pyc159130644editdlrm
__init__.cpython-311.pyc2110644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/libfuturize/__pycache__/main.cpython-311.pyc (15913B)
§ Z3!Qã~Påãó’—dZddlmZmZmZddlZddlmZddlZddl Z ddl Z ddl Z ddl m Z mZddlmZddlmZmZmZmZdZd d „ZdS) a¶ futurize: automatic conversion to clean 2/3 code using ``python-future`` ====================================================================== Like Armin Ronacher's modernize.py, ``futurize`` attempts to produce clean standard Python 3 code that runs on both Py2 and Py3. One pass -------- Use it like this on Python 2 code: $ futurize --verbose mypython2script.py This will attempt to port the code to standard Py3 code that also provides Py2 compatibility with the help of the right imports from ``future``. To write changes to the files, use the -w flag. Two stages ---------- The ``futurize`` script can also be called in two separate stages. First: $ futurize --stage1 mypython2script.py This produces more modern Python 2 code that is not yet compatible with Python 3. The tests should still run and the diff should be uncontroversial to apply to most Python projects that are willing to drop support for Python 2.5 and lower. After this, the recommended approach is to explicitly mark all strings that must be byte-strings with a b'' prefix and all text (unicode) strings with a u'' prefix, and then invoke the second stage of Python 2 to 2/3 conversion with:: $ futurize --stage2 mypython2script.py Stage 2 adds a dependency on ``future``. It converts most remaining Python 2-specific code to Python 3 code and adds appropriate imports from ``future`` to restore Py2 support. The command above leaves all unadorned string literals as native strings (byte-strings on Py2, unicode strings on Py3). If instead you would like all unadorned string literals to be promoted to unicode, you can also pass this flag: $ futurize --stage2 --unicode-literals mypython2script.py This adds the declaration ``from __future__ import unicode_literals`` to the top of each file, which implicitly declares all unadorned string literals to be unicode strings (``unicode`` on Py2). All imports ----------- 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.) é)Úabsolute_importÚprint_functionÚunicode_literalsN)Ú __version__)ÚwarnÚStdoutRefactoringTool)Úrefactor)Úlib2to3_fix_names_stage1Úlib2to3_fix_names_stage2Úlibfuturize_fix_names_stage1Úlibfuturize_fix_names_stage2zlibfuturize.fixescót‡—tjd¬¦«}| dddd¬¦«| dd dd ¬¦«| d d dd ¬¦«| dddd¬¦«| dddd¬¦«| dddd¬¦«| dddgd¬¦«| ddddd d!¬"¦«| d#d$dgd%¬¦«| d&d'dd(¬¦«| d)d*dd+¬¦«| d,d-dd.¬¦«| d/dd0¬¦«| d1d2dd3¬¦«| d4d5dd6d7¬¦«| d8d9dd:d;d<¬=¦«| d>d?dd@¬¦«| dAdd:d;dB¬=¦«i}d6}| |¦«\}}|jr"dC|dD<|jst dE¦«dC|_|jr|js|  dF¦«|j r|js|  dG¦«|js|j rt dH¦«|js|jr|  dI¦«dJ|vr&dC}|jrtdKtj¬L¦«dMS|jrdC|dN<|jr t"jn t"j}t#jdO|¬P¦«t#jdQ¦«}|js|jr|j�J‚d6|_ndC|_t3¦«}|js|jr4| t6¦«| t8¦«|js|jr4| t:¦«| t<¦«|jr|  dS¦«|j!rttD¦«dTS|j#r4tdU¦«tI|¦«D]}t|¦«Œ|sdTS|s8tdVtj¬L¦«tdWtj¬L¦«dMSt3¦«} |j%D]ÇŠdX‰vr|   ‰¦«ŒˆfdY„|D¦«} tM| ¦«dkr>tdZd[ 'd\„| D¦«¦«ztj¬L¦«dMStM| ¦«dTkrtd]tj¬L¦«dMS|   | dT¦«ŒÈt3¦«} |j(rl|jrd^} |   | d_z¦«nJd`} |   | daz¦«|   | dbz¦«|   | dcz¦«t3¦«} |j)�rJd6}|j)D]Њ‰ddkrdC}Œ dX‰vr|   ‰¦«Œ%ˆfde„|D¦«} tM| ¦«dkr>tdZd[ 'df„| D¦«¦«ztj¬L¦«dMStM| ¦«dTkrtd]tj¬L¦«dMS|   | dT¦«ŒÑtM| | z¦«dTkr@tdgd[ 'dh„| | zD¦«¦«ztj¬L¦«dMS|r| *| ¦«n| }n| *| ¦«}|| z| z }tVj, -|¦«}|r]| .tVj/¦«s>tVj, 0|¦«stVj, 1|¦«}|jr;| 2tVj/¦«}| 3di|j|¦«thj5j6ri}n|j |j|djœ}totI|¦«|tI| ¦«|j|j fi|¤Ž}|j8s�|r| 9¦«nb | :||jdR|j;¦«n>#ttj<$r,|j;dksJ‚tdktj¬L¦«YdSwxYw| =¦«t}t|j8¦«¦«S)lzþMain program. Args: fixer_pkg: the name of a package where the fixers are located. args: optional; a list of command line arguments. If omitted, sys.argv[1:] is used. Returns a suggested exit status (0, 1, 2). zfuturize [options] file|dir ...)Úusagez-Vz --versionÚ store_truez%Report the version number of futurize)ÚactionÚhelpz-az --all-importsz4Add all __future__ and future imports to each modulez-1z--stage1zZModernize Python 2 code only; no compatibility with Python 3 (or dependency on ``future``)z-2z--stage2z^Take modernized (stage1) code and add a dependency on ``future`` to provide Py3 compatibility.z-0z --both-stageszApply both stages 1 and 2z-uz--unicode-literalsz{Add ``from __future__ import unicode_literals`` to implicitly convert all unadorned string literals '' into unicode stringsz-fz--fixÚappendzÊEach FIX specifies a transformation; default: all. Either use '-f division -f metaclass' etc. or use the fully-qualified module name: '-f lib2to3.fixes.fix_types -f libfuturize.fixes.fix_unicode_keep_u')rÚdefaultrz-jz --processesÚstoreéÚintzRun 2to3 concurrently)rrÚtyperz-xz--nofixzPrevent a fixer from being run.z-lz --list-fixeszList available transformationsz-pz--print-functionz0Modify the grammar so that print() is a functionz-vz --verbosezMore verbose loggingz --no-diffsz#Don't show diffs of the refactoringz-wz--writezWrite back modified filesz-nz --nobackupsFz'Don't write backups for modified files.z-oz --output-dirÚstrÚzpPut output files in this directory instead of overwriting the input files. Requires -n. For Python >= 2.7 only.)rrrrz-Wz--write-unchanged-fileszYAlso write files even if no changes were required (useful with --output-dir); implies -w.z --add-suffixz‹Append this string to all output filenames. Requires -n if non-empty. For Python >= 2.7 only.ex: --add-suffix='3' will generate .py3 files.TÚwrite_unchanged_filesz&--write-unchanged-files/-W implies -w.z%Can't use --output-dir/-o without -n.z"Can't use --add-suffix without -n.z@not writing files and not printing diffs; that's not very usefulzCan't use -n without -wú-zCan't write to stdin.)Úfileérz%(name)s: %(message)s)ÚformatÚlevelzlibfuturize.mainNz-libfuturize.fixes.fix_unicode_literals_importrz2Available transformations for the -f/--fix option:z1At least one file or directory argument required.zUse --help to show usage.z.fix_cód•—g|],}| d ‰¦«¦«¯*|‘Œ-S©zfix_{0}©Úendswithr©Ú.0ÚfÚfixs €úb/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/libfuturize/main.pyú zmain..ØsGø€ð;ð;ð;˜1ØŸ š  9×#3Ò#3°CÑ#8Ô#8Ñ9Ô9ð;�Qð;ð;ð;ózOAmbiguous fixer name. Choose a fully qualified module name instead from these: ú c3ó K—|] }d|zV—Œ dS©z N©©r&Úmyfs r)ú zmain..Ýs&èè€Ð<Ð<¨s  s¡ Ð<Ð<Ð<Ð<Ð<Ð.ÿsNø€ðCðCðC 1Ø !§ ¢ ¨9×+;Ò+;¸CÑ+@Ô+@Ñ AÔ AðC˜QðCðCðCr+c3ó K—|] }d|zV—Œ dSr.r/r0s r)r2zmain..s&èè€Ð'DÐ'D°s¨¨s© Ð'DÐ'DÐ'DÐ'DÐ'DÐ'Dr+z[Conflicting usage: the following fixers have been simultaneously requested and disallowed: c3ó K—|] }d|zV—Œ dSr.r/r0s r)r2zmain..s&èè€ÐNÐN¨3˜D 3™JÐNÐNÐNÐNÐNÐNr+z7Output in %r will mirror the input directory %r layout.)Ú append_suffixÚ output_dirÚinput_base_dirz+Sorry, -j isn't supported on this platform.)@ÚoptparseÚ OptionParserÚ add_optionÚ parse_argsrÚwriterr<Ú nobackupsÚerrorÚ add_suffixÚno_diffsÚprintÚsysÚstderrrÚverboseÚloggingÚDEBUGÚINFOÚ basicConfigÚ getLoggerÚstage1Ústage2Ú both_stagesÚsetÚupdater r r r rÚaddÚversionrÚ list_fixesÚsortedÚnofixÚlenÚjoinÚ all_importsr(ÚunionÚosÚpathÚ commonprefixr$ÚsepÚisdirÚdirnameÚrstripÚinfoÚfutureÚutilsÚPY26rÚerrorsÚrefactor_stdinr Ú processesÚMultiprocessingUnsupportedÚ summarizerÚbool)ÚargsÚparserÚflagsrjÚoptionsr ÚloggerÚ avail_fixesÚfixnameÚunwanted_fixesÚfoundÚ extra_fixesÚprefixÚexplicitÚ all_presentÚ requestedÚ fixer_namesr=Ú extra_kwargsÚrtr(s @r)Úmainr€Ts� ø€õÔ "Ð)JÐ KÑ KÔ K€FØ ×Ò�d˜K° ØBðñDôDðDà ×Ò�d˜O°LØQðñSôSðSà ×Ò�d˜J¨|Øwðñyôyðyà ×Ò�d˜J¨|Ø{ðñ}ô}ð}à ×Ò�d˜O°LØ6ðñ8ô8ð8à ×Ò�dÐ0¸ðYðñZôZðZà ×Ò�d˜G¨H¸bðiðñjôjðjà ×Ò�d˜M°'À1Ø Ð'>ðñ@ô@ð@à ×Ò�d˜I¨hÀØ<ðñ>ô>ð>à ×Ò�d˜N°<Ø;ðñ=ô=ð=à ×Ò�dÐ.°|ØMðñOôOðOà ×Ò�d˜K° Ø1ðñ3ô3ð3à ×Ò�l¨<Ø@ðñBôBðBà ×Ò�d˜I¨lØ6ðñ8ô8ð8à ×Ò�d˜M°,ÈØDðñFôFðFà ×Ò�d˜N°7ÀØ ð(0ðñ1ô1ð1ð ×Ò�dÐ5¸lðAðñBôBðBð ×Ò�n¨W¸5È"ðGðñHôHðHð €EØ€NØ×%Ò% dÑ+Ô+�M€GˆTàÔ$ðØ)-ˆÐ%Ñ&ØŒ}ð ;Ý Ð9Ñ :Ô :Ð :؈Œ ðÔð> 'Ô"3ð>Ø� Š Ð<Ñ=Ô=Ð=ØÔð; 'Ô"3ð;Ø� Š Ð9Ñ:Ô:Ð:à Œ=ðQ˜WÔ-ðQÝ Ð OÑPÔPÐPØ Œ=ð0˜WÔ.ð0Ø� Š Ð.Ñ/Ô/Ð/Ø ˆd€{€{ØˆØ Œ=ð Ý Ð)µ´ Ð ;Ñ ;Ô ;Ð ;Ø�1àÔð'Ø"&ˆÐÑð%œ_Ð >�GŒMˆMµ'´,€EÝ ÔÐ6¸eÐDÑDÔDÐDÝ Ô Ð1Ñ 2Ô 2€Fà„~ð#˜œð#ØÔ"Ð*Ð*Ð*Ø#ˆÔÐà"ˆÔå‘%”%€Kà„~ð9˜Ô,ð9Ø×ÒÕ3Ñ4Ô4Ð4Ø×ÒÕ7Ñ8Ô8Ð8Ø„~ð9˜Ô,ð9Ø×ÒÕ3Ñ4Ô4Ð4Ø×ÒÕ7Ñ8Ô8Ð8àÔðIØ�ŠÐGÑHÔHÐHà„ðÝ �kÑÔÐØˆqØÔðÝ ÐBÑCÔCÐCå˜kÑ*Ô*ð ð ˆGÝ �'‰NŒNˆNˆNØð Ø�1Ø ðÝ ÐAÝ”:ð ñ ô ð å Ð)µ´ Ð;Ñ;Ô;Ð;؈qå‘U”U€NØŒ}ð)ð)ˆØ �cˆ>ˆ>Ø × Ò ˜sÑ #Ô #Ð #Ð #ð ;ð;ð;ð;  ð;ñ;ô;ˆEå�5‰zŒz˜AŠ~ˆ~Ýð:à—i’iÐ<Ð<°eÐ<Ñ<Ô<Ñ<Ô<ñ=õœ:ð'ñ'ô'ð'ð�q�qÝ�U‘”˜q’�ÝÐIÝœ:ð'ñ'ô'ð'à�q�qØ × Ò ˜u QœxÑ (Ô (Ð (Ð (å‘%”%€KØÔð DØ Œ>ð DØ)ˆFØ �OŠO˜FØNñOñ Pô Pð Pð Pð,ˆFØ �OŠO˜FÐ%CÑCÑ DÔ DÐ DØ �OŠO˜FÐ%MÑMÑ NÔ NÐ NØ �OŠO˜FÐ%BÑBÑ CÔ CÐ C݉uŒu€HØ„{ñ!0؈ Ø”;ð +ð +ˆCØ�eŠ|ˆ|Ø"� � à˜c�>�>Ø—L’L Ñ%Ô%Ð%Ð%ð CðCðCðC¨ ðCñCôC�Eå˜5‘z”z A’~�~ÝðBà"ŸišiÐ'DÐ'D¸eÐ'DÑ'DÔ'DÑDÔDñEõ$'¤:ð/ñ/ô/ð/ð !˜q˜qݘU™œ qš˜ÝÐQÝ#&¤:ð/ñ/ô/ð/à ˜q˜qØ—L’L  q¤Ñ*Ô*Ð*Ð*Ý ˆx˜.Ñ(Ñ )Ô )¨AÒ -Ð -Ý ð?à—)’)ÐNÐN°8¸nÑ3LÐNÑNÔNÑNÔNñOõ”zð #ñ #ô #ð #ð�1Ø3>ÐL�K×%Ò% hÑ/Ô/Ð/ÀHˆ ˆ à×%Ò% hÑ/Ô/ˆ ؘ{Ñ*¨nÑ<€Kå”W×)Ò)¨$Ñ/Ô/€NØð9˜~×6Ò6µr´vÑ>Ô>ð9Ý”— ’ ˜nÑ-Ô-ð9õ œŸš¨Ñ8Ô8ˆØÔð8Ø'×.Ò.­r¬vÑ6Ô6ˆØ� Š ÐMØÔ&¨ñ 8ô 8ð 8õ„|ÔðØˆ ˆ ð*1Ô);Ø&-Ô&8Ø*8ððˆ õ Ý �;Ñ Ô  ­¨xÑ(8Ô(8Ø Ô  7Ô#3Ð3ð ð ðð ð €Bð Œ9ð Ø ð Ø × Ò Ñ Ô Ð Ð ð Ø— ’ ˜D '¤-°Ø#Ô-ñ/ô/ð/ð/øåÔ6ð ð ð ØÔ(¨1Ò,Ð,Ð,Ð,Ýð4Ý:=¼*ðFñFôFðFà�q�qð  øøøð � Š ‰Œˆõ �t�B”I‰ŒÑ Ô Ðsâ$"cã7däd)N)Ú__doc__Ú __future__rrrÚ future.utilsrfrrHrKr>r^Ú lib2to3.mainrrÚlib2to3r Úlibfuturize.fixesr r r r Ú fixer_pkgr€r/r+r)úrˆsðð=ð=ð~KÐJÐJÐJÐJÐJÐJÐJÐJÐJØÐÐÐØÐÐÐÐÐà € € € Ø€€€Ø€€€Ø € € € à4Ð4Ð4Ð4Ð4Ð4Ð4Ð4ØÐÐÐÐÐð=ð=ð=ð=ð=ð=ð=ð=ð=ð=ð=ð=ð € ðn ðn ðn ðn ðn ðn r+