*** /home/trentm/main/contrib/python/dist/src/Modules/timemodule.c Thu Jun 1 18:49:40 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/timemodule.c Wed May 31 23:54:18 2000 *************** *** 835,844 **** } #else /* !MSDOS */ #ifdef MS_WIN32 ! /* XXX Can't interrupt this sleep */ ! Py_BEGIN_ALLOW_THREADS ! Sleep((int)(secs*1000)); ! Py_END_ALLOW_THREADS #else /* !MS_WIN32 */ #ifdef PYOS_OS2 /* This Sleep *IS* Interruptable by Exceptions */ --- 835,851 ---- } #else /* !MSDOS */ #ifdef MS_WIN32 ! { ! double millisecs = secs * 1000.0; ! if (millisecs > (double)ULONG_MAX) { ! PyErr_SetString(PyExc_OverflowError, "sleep length is too large"); ! return -1; ! } ! /* XXX Can't interrupt this sleep */ ! Py_BEGIN_ALLOW_THREADS ! Sleep((unsigned long)millisecs); ! Py_END_ALLOW_THREADS ! } #else /* !MS_WIN32 */ #ifdef PYOS_OS2 /* This Sleep *IS* Interruptable by Exceptions */