o
    ii                     @   s2   d Z ddlmZ ddlmZ G dd dejZdS )zm
Fixer for os.getcwd() -> os.getcwdu().
Also warns about "from os import getcwd", suggesting the above form.
    )
fixer_base)Namec                   @   s   e Zd ZdZdd ZdS )	FixGetcwdz
              power< 'os' trailer< dot='.' name='getcwd' > any* >
              |
              import_from< 'from' 'os' 'import' bad='getcwd' >
              c                 C   sH   d|v r|d }| td|jd d S d|v r | |d d S td)NnameZgetcwdu)prefixbadz#import os, use os.getcwd() instead.z,For some reason, the pattern matcher failed.)replacer   r   Zcannot_convert
ValueError)selfnoderesultsr    r   m/var/www/html/eduruby.in/lip-sync/lip-sync-env/lib/python3.10/site-packages/libpasteurize/fixes/fix_getcwd.py	transform   s   zFixGetcwd.transformN)__name__
__module____qualname__ZPATTERNr   r   r   r   r   r   	   s    r   N)__doc__Zlib2to3r   Zlib2to3.fixer_utilr   ZBaseFixr   r   r   r   r   <module>   s    