mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Getting rid of code dependent on GUSI or the MetroWerks compiler.
This commit is contained in:
parent
bc2fbc74ed
commit
4bae2d5e46
7 changed files with 1 additions and 60 deletions
|
@ -1739,11 +1739,6 @@ sock_makefile(PySocketSockObject *s, PyObject *args)
|
|||
SOCKETCLOSE(fd);
|
||||
return s->errorhandler();
|
||||
}
|
||||
#ifdef USE_GUSI2
|
||||
/* Workaround for bug in Metrowerks MSL vs. GUSI I/O library */
|
||||
if (strchr(mode, 'b') != NULL)
|
||||
bufsize = 0;
|
||||
#endif
|
||||
f = PyFile_FromFile(fp, "<socket>", mode, fclose);
|
||||
if (f != NULL)
|
||||
PyFile_SetBufSize(f, bufsize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue