HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/lib/python3.6/site-packages/libpasteurize/fixes/__pycache__/fix_getcwd.cpython-36.pyc
3

6	Egi�@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}|jtd|jd��n d|kr>|j|d�dStd��dS)N�nameZgetcwdu)�prefix�badz#import os, use os.getcwd() instead.z,For some reason, the pattern matcher failed.)�replacerrZcannot_convert�
ValueError)�self�node�resultsr�r
�E/root/tmp/pip-build-f6rmvwrq/future/libpasteurize/fixes/fix_getcwd.py�	transformszFixGetcwd.transformN)�__name__�
__module__�__qualname__ZPATTERNrr
r
r
rr	srN)�__doc__Zlib2to3rZlib2to3.fixer_utilrZBaseFixrr
r
r
r�<module>s