Ë
    	š„j¾  ã                   ó¢   — d Z ddlmZ ddlZddlmZ ddlmZ ddlm	Z	 ddl
mZmZmZ  ej                  d«      Z G d	„ d
ej                   «      Zy)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_importÚtouch_import_topÚwrap_in_fn_callz[^uUrR]?[\'\"]c                   ó   — e Zd ZdZdZd„ Zy)ÚFixOldstrWrapTÚSTRINGc                 ó$  — |j                   t        j                  k(  rst        dd|«       t        j                  |j                  «      rF|j                  «       }d|_        d|j                  z   |_        t        d|g|j                  ¬«      }|S y y )Nz
past.typesÚoldstrÚ Úb)Úprefix)
Útyper   r   r   Ú_literal_reÚmatchÚvalueÚcloner   r	   )ÚselfÚnodeÚresultsÚnewÚwrappeds        úX/var/www/html/GAP/venv/lib/python3.12/site-packages/libfuturize/fixes/fix_oldstr_wrap.pyÚ	transformzFixOldstrWrap.transform   sw   € Ø�9‰9œŸ™Ò$Ü˜]¨I°tÔ<Ü× Ñ  §¡Ô,Ø—j‘j“l�ð !�”
Ø  3§9¡9Ñ,�”	Ü)¨(°S°EÀ$Ç+Á+ÔN�Ø�ð -ð %ó    N)Ú__name__Ú
__module__Ú__qualname__ÚBM_compatibleÚPATTERNr   © r   r   r   r      s   „ Ø€MØ€Gó
r   r   )Ú__doc__Ú
__future__r   ÚreÚlib2to3r   Úlib2to3.pgen2r   Úlib2to3.fixer_utilr   Úlibfuturize.fixer_utilr   r   r	   Úcompiler   ÚBaseFixr   r$   r   r   ú<module>r.      sJ   ðñ
õ (Û 	Ý Ý Ý #÷5ñ 5ð ˆb�j‰jÐ*Ó+€ô�J×&Ñ&õ r   