Commit f10bc82
committed
Fix OSError.__reduce__ to preserve winerror when filename is None
When filename is None, __reduce__ was reconstructing a 2-element
(errno, msg) tuple, dropping the winerror at position 3 in the
original args. Use the original args tuple instead, matching CPython.1 parent 801a5ed commit f10bc82
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2084 | 2084 | | |
2085 | 2085 | | |
2086 | 2086 | | |
2087 | | - | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
2088 | 2090 | | |
2089 | 2091 | | |
2090 | | - | |
| 2092 | + | |
2091 | 2093 | | |
2092 | 2094 | | |
2093 | 2095 | | |
| |||
0 commit comments