HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_oldstr_wrap.pyo
�
�A�[c@s�dZddlmZddlZddlmZddlmZddlm	Z	ddl
mZmZm
Z
ejd�Zd	ejfd
��YZdS(u
For the ``future`` package.

Adds this import line:

    from past.builtins import str as oldstr

at the top and wraps any unadorned string literals 'abc' or explicit byte-string
literals b'abc' in oldstr() calls so the code has the same behaviour on Py3 as
on Py2.6/2.7.
i����(tunicode_literalsN(t
fixer_base(ttoken(tsyms(t
future_importttouch_import_toptwrap_in_fn_callu[^uUrR]?[\'\"]t
FixOldstrWrapcBseZeZdZd�ZRS(uSTRINGcCs|jtjkr{tdd|�tj|j�r{|j�}d|_d|j|_t	d|gd|j�}|SndS(Nu
past.typesuoldstruubtprefix(
ttypeRtSTRINGRt_literal_retmatchtvaluetcloneRR(tselftnodetresultstnewtwrapped((sR/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_oldstr_wrap.pyt	transforms	(t__name__t
__module__tTruet
BM_compatibletPATTERNR(((sR/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_oldstr_wrap.pyRs(t__doc__t
__future__Rtretlib2to3Rt
lib2to3.pgen2Rtlib2to3.fixer_utilRtlibfuturize.fixer_utilRRRtcompileRtBaseFixR(((sR/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_oldstr_wrap.pyt<module>s