HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_oldstr_wrap.pyc
�
�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