mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-42090: zipfile.Path.joinpath now accepts multiple arguments (GH-22976)
Automerge-Triggered-By: GH:jaraco
This commit is contained in:
parent
b230409f21
commit
928dbfc16c
4 changed files with 24 additions and 3 deletions
|
@ -2379,8 +2379,8 @@ class Path:
|
|||
def __repr__(self):
|
||||
return self.__repr.format(self=self)
|
||||
|
||||
def joinpath(self, add):
|
||||
next = posixpath.join(self.at, add)
|
||||
def joinpath(self, *other):
|
||||
next = posixpath.join(self.at, *other)
|
||||
return self._next(self.root.resolve_dir(next))
|
||||
|
||||
__truediv__ = joinpath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue