Your IP : 216.73.216.172


Current Path : /lib/python3/dist-packages/libpasteurize/fixes/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/libpasteurize/fixes/__pycache__/fix_getcwd.cpython-38.pyc

U

,�]i�@s2dZddlmZddlmZGdd�dej�ZdS)zm
Fixer for os.getcwd() -> os.getcwdu().
Also warns about "from os import getcwd", suggesting the above form.
�)�
fixer_base)�Namec@seZdZdZdd�ZdS)�	FixGetcwdz�
              power< 'os' trailer< dot='.' name='getcwd' > any* >
              |
              import_from< 'from' 'os' 'import' bad='getcwd' >
              cCsJd|kr&|d}|�td|jd��n d|kr>|�|d�dStd��dS)N�nameZgetcwdu)�prefixZbadz#import os, use os.getcwd() instead.z,For some reason, the pattern matcher failed.)�replacerrZcannot_convert�
ValueError)�selfZnodeZresultsr�r
�@/usr/lib/python3/dist-packages/libpasteurize/fixes/fix_getcwd.py�	transformszFixGetcwd.transformN)�__name__�
__module__�__qualname__ZPATTERNrr
r
r
rr	srN)�__doc__Zlib2to3rZlib2to3.fixer_utilrZBaseFixrr
r
r
r�<module>s