Message378725
`Lib/os.py` has at line 464, in definition of `fwalk`:
```
if not isinstance(top, int) or not hasattr(top, '__index__'):
```
If I understand this test correctly, it should be requiring that the name/fd is NEITHER an int NOR has an __index__ method. As written, anything which fails the left-hand side (and so is an int) will probably have an __index__ method, so the right-hand side is idle.
Proposed fix: change `or` to `and`. |
|
Date |
User |
Action |
Args |
2020-10-16 17:31:45 | dubiousjim | set | recipients:
+ dubiousjim |
2020-10-16 17:31:45 | dubiousjim | set | messageid: <1602869505.61.0.789643368245.issue42053@roundup.psfhosted.org> |
2020-10-16 17:31:45 | dubiousjim | link | issue42053 messages |
2020-10-16 17:31:45 | dubiousjim | create | |
|