Skip to content

Commit 03ddd70

Browse files
Remove special case handling for Windows
PyErr_SetFromErrnoWithFilename works for Unix and Windows
1 parent 216cdf0 commit 03ddd70

File tree

1 file changed

+0
-4
lines changed
  • pandas/_libs/src/parser

1 file changed

+0
-4
lines changed

pandas/_libs/src/parser/io.c

-4
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ void *new_file_source(char *fname, size_t buffer_size) {
6666
#endif
6767
if (fs->fd == -1) {
6868
free(fs);
69-
#ifdef USE_WIN_UTF16
70-
PyErr_SetFromWindowsErr(GetLastError());
71-
#else
7269
PyErr_SetFromErrnoWithFilename(PyExc_OSError, fname);
73-
#endif
7470
return NULL;
7571
}
7672

0 commit comments

Comments
 (0)