projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
504377d
)
When time.localtime() is passed a tick count the platform C localtime()
author
Tim Peters
<tim.peters@gmail.com>
Fri, 17 Jan 2003 20:08:54 +0000
(20:08 +0000)
committer
Tim Peters
<tim.peters@gmail.com>
Fri, 17 Jan 2003 20:08:54 +0000
(20:08 +0000)
function can't handle, don't raise IOError -- that doesn't make sense.
Raise ValueError instead.
Bugfix candidate.
Modules/timemodule.c
patch
|
blob
|
history
diff --git
a/Modules/timemodule.c
b/Modules/timemodule.c
index 7a2f02a8754eb2cec9fafe5782db836baccc4b38..c6880914b8109cf59103b092358ae8215acd6bdc 100644
(file)
--- a/
Modules/timemodule.c
+++ b/
Modules/timemodule.c
@@
-273,7
+273,7
@@
time_convert(time_t when, struct tm * (*function)(const time_t *))
if (errno == 0)
errno = EINVAL;
#endif
- return PyErr_SetFromErrno(PyExc_
IO
Error);
+ return PyErr_SetFromErrno(PyExc_
Value
Error);
}
return tmtotuple(p);
}