diff options
| author | Steve Dower <steve.dower@python.org> | 2022-03-22 01:08:37 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-22 01:08:37 (GMT) |
| commit | 3751b6b030b4a3b88959b4f3c4ef2e58d325e497 (patch) | |
| tree | 2e88aeafa9c1e99c1ab33ec0ec4d4c92bb061517 /PC/layout/support/filesets.py | |
| parent | 19058b9f6271338bcc46b7d30fe79a83990cc35c (diff) | |
| download | cpython-3751b6b030b4a3b88959b4f3c4ef2e58d325e497.zip cpython-3751b6b030b4a3b88959b4f3c4ef2e58d325e497.tar.gz cpython-3751b6b030b4a3b88959b4f3c4ef2e58d325e497.tar.bz2 | |
bpo-47086: Remove .chm from Windows installer and add HTML docs (GH-32038)
Diffstat (limited to 'PC/layout/support/filesets.py')
| -rw-r--r-- | PC/layout/support/filesets.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/layout/support/filesets.py b/PC/layout/support/filesets.py index 47f727c..3f63f68 100644 --- a/PC/layout/support/filesets.py +++ b/PC/layout/support/filesets.py @@ -93,6 +93,8 @@ def _return_true(f): def rglob(root, patterns, condition=None): + if not os.path.isdir(root): + return if isinstance(patterns, tuple): for p in patterns: yield from _rglob(root, p, condition or _return_true) |
