File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/_vendor/zipp/__pycache__/__init__.cpython-310.pyc
Back
o ;j�. � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl mZ ddlm Z ddlmZ dgZdd � Zd d� ZejZ dd � 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� )�save_method_args)� text_encoding)� Translator�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 �T/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/_vendor/zipp/__init__.py�_parents s r c c sB � | � tj�} | � tj�r| V t�| �\} }| � tj�s dS dS )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 . 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__)ZminuendZ subtrahendr r r �_differenceM 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 Z � zInitializedState.__init__c C s | j j| j jfS r )Z_saved___init__r r �r r r r �__getstate__^ � zInitializedState.__getstate__c s |\}}t � j|i |�� d S r r )r �stater r r r r �__setstate__a s zInitializedState.__setstate__) �__name__� __module__�__qualname__�__doc__r r r# r&