mirror of
https://github.com/python/cpython.git
synced 2025-11-07 17:12:03 +00:00
GH-128520: pathlib ABCs: tweak protocol for virtual path strings (#134104)
Adjust `pathlib._os.vfspath()` so that it doesn't try `os.fsdecode()`. I don't know that supporting `os.PathLike` arguments is a good idea, so it's best to leave it out for now.
This commit is contained in:
parent
10a925c86d
commit
2bd4ff0700
3 changed files with 11 additions and 17 deletions
|
|
@ -334,4 +334,4 @@ def symlink_to(self, target, target_is_directory=False):
|
|||
zinfo.external_attr = stat.S_IFLNK << 16
|
||||
if target_is_directory:
|
||||
zinfo.external_attr |= 0x10
|
||||
self.zip_file.writestr(zinfo, vfspath(target))
|
||||
self.zip_file.writestr(zinfo, target)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue