Message347479
Originally reported in https://github.com/jaraco/zipp/issues/7, the parent of a Path object referencing a directory is returning the incorrect result:
cpython master $ docker run -it python:rc-buster
Python 3.8.0b1 (default, Jun 27 2019, 22:38:51)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipfile
>>> import io
>>> zf = zipfile.ZipFile(io.BytesIO(), 'w')
>>> p = zipfile.Path(zf)
>>> p.joinpath('missing/').parent
Path(None, 'missing/')
>>> p.joinpath('missing/').parent.at
'missing/'
The expected value is '' as the parent of a single-level directory is the parent directory. |
|
Date |
User |
Action |
Args |
2019-07-07 20:54:03 | jaraco | set | recipients:
+ jaraco |
2019-07-07 20:54:03 | jaraco | set | messageid: <1562532843.64.0.14097351238.issue37520@roundup.psfhosted.org> |
2019-07-07 20:54:03 | jaraco | link | issue37520 messages |
2019-07-07 20:54:03 | jaraco | create | |
|