mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
gh-106752: Move zipfile._path into its own package (#106753)
* gh-106752: Move zipfile._path into its own package so it may have supplementary behavior. * Add blurb
This commit is contained in:
parent
fb32f35c05
commit
03185f0c15
11 changed files with 5 additions and 2 deletions
9
Lib/test/test_zipfile/_path/_functools.py
Normal file
9
Lib/test/test_zipfile/_path/_functools.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
import functools
|
||||
|
||||
|
||||
# from jaraco.functools 3.5.2
|
||||
def compose(*funcs):
|
||||
def compose_two(f1, f2):
|
||||
return lambda *args, **kwargs: f1(f2(*args, **kwargs))
|
||||
|
||||
return functools.reduce(compose_two, funcs)
|
Loading…
Add table
Add a link
Reference in a new issue