mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
dump HAVE_FOPENRF stuff - obsolete
This commit is contained in:
parent
a5616d2255
commit
51ffac6db7
1 changed files with 19 additions and 26 deletions
|
@ -151,14 +151,7 @@ open_the_file(PyFileObject *f, char *name, char *mode)
|
|||
return NULL;
|
||||
}
|
||||
errno = 0;
|
||||
#ifdef HAVE_FOPENRF
|
||||
if (*mode == '*') {
|
||||
FILE *fopenRF();
|
||||
f->f_fp = fopenRF(name, mode+1);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
|
||||
if (strcmp(mode, "U") == 0 || strcmp(mode, "rU") == 0)
|
||||
mode = "rb";
|
||||
#ifdef MS_WINDOWS
|
||||
|
@ -181,7 +174,7 @@ open_the_file(PyFileObject *f, char *name, char *mode)
|
|||
f->f_fp = fopen(name, mode);
|
||||
Py_END_ALLOW_THREADS
|
||||
}
|
||||
}
|
||||
|
||||
if (f->f_fp == NULL) {
|
||||
#ifdef _MSC_VER
|
||||
/* MSVC 6 (Microsoft) leaves errno at 0 for bad mode strings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue