B A[@spdZddlmZddlZddlmZddlmZddlm Z ddl m Z m Z m Z edZGd d d ejZdS) a 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. )unicode_literalsN) fixer_base)token)syms) future_importtouch_import_topwrap_in_fn_callz[^uUrR]?[\'\"]c@seZdZdZdZddZdS) FixOldstrWrapTSTRINGcCsX|jtjkrTtdd|t|jrT|}d|_d|j|_t d|g|jd}|SdS)Nz past.typesZoldstrb)prefix) typerr r _literal_rematchvaluecloner r)selfnoderesultsnewwrappedrR/opt/alt/python37/lib/python3.7/site-packages/libfuturize/fixes/fix_oldstr_wrap.py transforms    zFixOldstrWrap.transformN)__name__ __module__ __qualname__Z BM_compatibleZPATTERNrrrrrr sr )__doc__ __future__rreZlib2to3rZ lib2to3.pgen2rZlib2to3.fixer_utilrZlibfuturize.fixer_utilrrrcompilerZBaseFixr rrrr s