관리-도구
편집 파일: __init__.cpython-38.pyc
U )�e�+ � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZddlmZ ddl m Z dgZdd� Zdd � Z ejZd d� ZG dd � d �ZG dd� deej�ZG dd� de�Zddd�ZG dd� d�ZdS )� N� �� text_encoding)� translate�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 �;/opt/hc_python/lib/python3.8/site-packages/zipp/__init__.py�_parents s r c c s4 | � tj�} | r0| tjkr0| V t�| �\} }qdS )aR 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('')) [] 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__)�minuend� subtrahendr r r �_difference= s r c s4 e Zd ZdZ� fdd�Zdd� Z� fdd�Z� ZS )�InitializedStatez? Mix-in to save the initialization state for pickling. c s || _ || _t� j||� d S �N)�_InitializedState__args�_InitializedState__kwargs�super�__init__)�self�args�kwargs�� __class__r r r J s zInitializedState.__init__c C s | j | jfS r )r r �r r r r �__getstate__O s zInitializedState.__getstate__c s |\}}t � j||� d S r )r r )r �stater r! r"