Commit dec5211
BUG: read_csv: fix wrong exception on permissions issue (#32737)
* Generate exception from the C code in the proper manner
Get rid of all error printf's and produce proper Python exceptions
* Declare some more exceptions from C code
* Remove special case error message for c parser
* Add whatsnew entry
* Fix missing semicolons
* Add regression test
* Remove special case handling for Windows
PyErr_SetFromErrnoWithFilename works for Unix and Windows
* Remove call to GetLastError(), when using 0, the python error code handles this
* black fixes
* Fix indentation of assert statement (also in previous test, same error)
* Skip the test on windows
* Fix black issue
* Let new_mmap fail without exception to allow fallback
* Do not create a python error in new_mmap to allow the fallback to work silently
* Remove the NULL pointer check for new_rd_source now that it will raise an exception
* Update doc/source/whatsnew/v1.1.0.rst
Co-Authored-By: gfyoung <[email protected]>
Co-authored-by: Jeff Reback <[email protected]>
Co-authored-by: gfyoung <[email protected]>1 parent 80078ac commit dec5211
File tree
4 files changed
+27
-27
lines changed- doc/source/whatsnew
- pandas
- _libs
- src/parser
- tests/io/parser
4 files changed
+27
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | 670 | | |
681 | 671 | | |
682 | 672 | | |
683 | 673 | | |
684 | 674 | | |
685 | 675 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | 676 | | |
691 | 677 | | |
692 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| 79 | + | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| |||
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
| |||
220 | 230 | | |
221 | 231 | | |
222 | 232 | | |
223 | | - | |
224 | | - | |
| 233 | + | |
225 | 234 | | |
226 | 235 | | |
227 | 236 | | |
228 | | - | |
229 | | - | |
230 | 237 | | |
231 | 238 | | |
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
235 | | - | |
236 | | - | |
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| |||
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
245 | | - | |
246 | | - | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
963 | | - | |
| 963 | + | |
964 | 964 | | |
965 | 965 | | |
| 966 | + | |
966 | 967 | | |
967 | | - | |
968 | 968 | | |
969 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
970 | 980 | | |
971 | 981 | | |
972 | 982 | | |
| |||
0 commit comments