,r%Ljݟ H d Z ddlmZ ddlmZ G d dej ZdS )zm
Fixer for os.getcwd() -> os.getcwdu().
Also warns about "from os import getcwd", suggesting the above form.
)
fixer_base)Namec e Zd ZdZd ZdS ) FixGetcwdz
power< 'os' trailer< dot='.' name='getcwd' > any* >
|
import_from< 'from' 'os' 'import' bad='getcwd' >
c d|v r3|d }| t d|j d S d|v r| |d d S t d )Nnamegetcwdu)prefixbadz#import os, use os.getcwd() instead.z,For some reason, the pattern matcher failed.)replacer r
cannot_convert
ValueError)selfnoderesultsr s p/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/libpasteurize/fixes/fix_getcwd.py transformzFixGetcwd.transform st g7#DLLj===>>>>>
w
&LMMMFLMMM N)__name__
__module____qualname__PATTERNr r r r r s/ G N N N N Nr r N)__doc__lib2to3r lib2to3.fixer_utilr BaseFixr r r r