Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/zipp/__pycache__/__init__.cpython-39.pyc
Ðазад
a ^�h!. � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl mZ ddlm Z ddlmZ dgZdd � Zd d� ZejZdd � ZG dd� d�ZG dd� dee j�ZG dd� de�Zddd�ZG dd� d�ZdS )z� A Path-like interface for zipfiles. This codebase is shared between zipfile.Path in the stdlib and zipp in PyPI. See https://github.com/python/importlib_metadata/wiki/Development-Methodology for more detail. � N� )� text_encoding)� Translator)�save_method_args�Pathc C s t �t| �dd�S )a2 Given a path with elements separated by posixpath.sep, generate all parents of that path. >>> list(_parents('b/d')) ['b'] >>> list(_parents('/b/d/')) ['/b'] >>> list(_parents('b/d/f/')) ['b/d', 'b'] >>> list(_parents('b')) [] >>> list(_parents('')) [] r N)� itertools�islice� _ancestry)�path� r �}/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/zipp/__init__.py�_parents s r c c s2 | � tj�} | � tj�r.| V t�| �\} }qdS )a� Given a path with elements separated by posixpath.sep, generate all elements of that path. >>> list(_ancestry('b/d')) ['b/d', 'b'] >>> list(_ancestry('/b/d/')) ['/b/d', '/b'] >>> list(_ancestry('b/d/f/')) ['b/d/f', 'b/d', 'b'] >>> list(_ancestry('b')) ['b'] >>> list(_ancestry('')) [] Multiple separators are treated like a single. >>> list(_ancestry('//b//d///f//')) ['//b//d///f', '//b//d', '//b'] N)�rstrip� posixpath�sep�split)r �tailr r r r 0 s r c C s t �t|�j| �S )zZ Return items in minuend not in subtrahend, retaining order with O(1) lookup. )r �filterfalse�set�__contains__)�minuend� subtrahendr r r �_differenceO s r c s8 e Zd ZdZe� fdd��Zdd� Z� fdd�Z� ZS )�InitializedStatez? Mix-in to save the initialization state for pickling. c s t � j|i |�� d S �N��super�__init__)�self�args�kwargs�� __class__r r r \ s zInitializedState.__init__c C s | j j| j jfS r )Z_saved___init__r r �r r r r �__getstate__` s zInitializedState.__getstate__c s |\}}t � j|i |�� d S r r )r �stater r r! r r �__setstate__c s zInitializedState.__setstate__) �__name__� __module__�__qualname__�__doc__r r r$ r&