| Server IP : 23.254.227.96 / Your IP : 216.73.216.183 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/pip/req/__pycache__/ |
Upload File : |
3
)�]b� � @ s� d dl mZ d dlZd dlZd dlZd dlmZmZmZ d dl m
Z
d dlmZm
Z
mZmZmZ d dlmZ eje�ZG dd� de�ZG d d
� d
e�ZdS )� )�absolute_importN)�uses_pycache�WINDOWS�cache_from_source)�UninstallationError)�rmtree�ask�is_local�renames�normalize_path)�
indent_logc @ sZ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z ddd�Z
dd� Zdd� ZdS )�UninstallPathSetzMA set of file paths to be removed in the uninstallation of a
requirement.c C s, t � | _t � | _i | _|| _d | _g | _d S )N)�set�paths�_refuse�pth�dist�save_dir�_moved_paths)�selfr � r �#/usr/lib/python3.6/req_uninstall.py�__init__ s zUninstallPathSet.__init__c C s t |�S )zs
Return True if the given path is one we are permitted to
remove/modify, False otherwise.
)r )r �pathr r r �
_permitted s zUninstallPathSet._permittedc C s� t jj|�\}}t jjt|�t jj|��}t jj|�s:d S | j|�rR| jj |� n| j
j |� t jj|�d dkr�tr�| j t
|�� d S )N� z.py)�osr �split�joinr �normcase�existsr r �addr �splitextr r )r r �head�tailr r r r! # s
zUninstallPathSet.addc C sL t |�}| j|�r<|| jkr*t|�| j|<