Formatting, and minor error detection
This commit is contained in:
parent
6f332d8f35
commit
4a6cf4167b
|
@ -239,8 +239,9 @@ time_strftime(self, args)
|
|||
buf.tm_mon--;
|
||||
buf.tm_wday = (buf.tm_wday + 1) % 7;
|
||||
buf.tm_yday--;
|
||||
/* I hate these functions that presume you know how big the output */
|
||||
/* will be ahead of time... */
|
||||
/* I hate these functions that presume you know how big the output
|
||||
* will be ahead of time...
|
||||
*/
|
||||
for (i = 1024 ; i < 8192 ; i += 1024) {
|
||||
outbuf = malloc(i);
|
||||
if (outbuf == NULL) {
|
||||
|
@ -386,6 +387,8 @@ inittime()
|
|||
}
|
||||
#endif /* HAVE_TM_ZONE */
|
||||
#endif /* !HAVE_TZNAME */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("Can't initialize time module");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue