diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-02-06 02:48:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 02:48:18 (GMT) |
commit | 1b1f8398d0ffe3c8ba2cca79d0c0f19a6a34e72a (patch) | |
tree | bb1cf363b3e007a040e2a1f55108bdd709bda4e9 /Python/pyarena.c | |
parent | 299e16ca0f303a1e00bd0e04679862a5d4db5ab2 (diff) | |
download | cpython-1b1f8398d0ffe3c8ba2cca79d0c0f19a6a34e72a.zip cpython-1b1f8398d0ffe3c8ba2cca79d0c0f19a6a34e72a.tar.gz cpython-1b1f8398d0ffe3c8ba2cca79d0c0f19a6a34e72a.tar.bz2 |
GH-106747: Make pathlib ABC globbing more consistent with `glob.glob()` (#115056)
When expanding `**` wildcards, ensure we add a trailing slash to the
topmost directory path. This matches `glob.glob()` behaviour:
>>> glob.glob('dirA/**', recursive=True)
['dirA/', 'dirA/dirB', 'dirA/dirB/dirC']
This does not affect `pathlib.Path.glob()`, because trailing slashes aren't
supported in pathlib proper.
Diffstat (limited to 'Python/pyarena.c')
0 files changed, 0 insertions, 0 deletions