HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //usr/local/lib/python3.9/site-packages/libpasteurize/fixes/__pycache__/fix_getcwd.cpython-39.pyc
a

q�dgi�@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|vr&|d}|�td|jd��n d|vr>|�|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
�H/usr/local/lib/python3.9/site-packages/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