֦il* d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z dgZ
d Zd Ze
j Z d Z G d d
Z G d deej$ Z G d
de ZddZ G d d Zy)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 ) translatePathc B t j 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) itertoolsislice _ancestry)paths //usr/lib64/python3.12/zipfile/_path/__init__.py_parentsr s IdOQ55 c # K | j t j } | j t j r=| t j | \ } }| j t j r