Commit f2685d9
gh-155212: Check for a directory before opening the file
Opening a directory fails with IsADirectoryError on Unix, but with
PermissionError on Windows.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent c3c96d7 commit f2685d9
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 72 | + | |
76 | 73 | | |
77 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments