Getting rid of code dependent on GUSI or the MetroWerks compiler.

This commit is contained in:
Jack Jansen 2003-11-19 22:52:23 +00:00
parent bc2fbc74ed
commit 4bae2d5e46
7 changed files with 1 additions and 60 deletions

View file

@ -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);