Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/libpasteurize/fixes/__pycache__/ |
Upload File : |
o ,�]i � @ s2 d Z ddlmZ ddlmZ G dd� dej�ZdS )zm Fixer for os.getcwd() -> os.getcwdu(). Also warns about "from os import getcwd", suggesting the above form. � )� fixer_base)�Namec @ s e Zd ZdZdd� ZdS )� FixGetcwdz� power< 'os' trailer< dot='.' name='getcwd' > any* > | import_from< 'from' 'os' 'import' bad='getcwd' > c C sH d|v r|d }|� td|jd�� d S d|v r | �|d� d S td��)N�name�getcwdu)�prefix�badz#import os, use os.getcwd() instead.z,For some reason, the pattern matcher failed.)�replacer r �cannot_convert� ValueError)�self�node�resultsr � r �@/usr/lib/python3/dist-packages/libpasteurize/fixes/fix_getcwd.py� transform s zFixGetcwd.transformN)�__name__� __module__�__qualname__�PATTERNr r r r r r s r N)�__doc__�lib2to3r �lib2to3.fixer_utilr �BaseFixr r r r r �<module> s