Ë
c‡½jl* ã óð — d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z dgZ
d„ Zd„ Ze
j Z d„ Z G d „ d
« Z G d„ deej$ « Z G d
„ de« Zdd„Z 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é )Ú translateÚPathc ó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)Ú itertoolsÚisliceÚ _ancestry)Úpaths ú//usr/lib64/python3.12/zipfile/_path/__init__.pyÚ_parentsr s € ô ×ÑœI d›O¨Q°Ó5Ð5ó c # ó K — | j t j « } | j t j « r=| –— t j | « \ } }| j t j « rŒ