diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-07-01 21:58:22 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-07-01 21:58:22 (GMT) |
commit | d09413012cb6b03fdae1439eaacc6076ce09f7b7 (patch) | |
tree | fb5203b5a4042d60042c89ce8a5c88e19daceb42 /Modules/datetimemodule.c | |
parent | 8934fc26c17f6a24d3643e1d4cce6e7ec341e92f (diff) | |
download | cpython-d09413012cb6b03fdae1439eaacc6076ce09f7b7.zip cpython-d09413012cb6b03fdae1439eaacc6076ce09f7b7.tar.gz cpython-d09413012cb6b03fdae1439eaacc6076ce09f7b7.tar.bz2 |
Revert r56044 (which changed the %c format specifier to accept a
unicode char into an int variable) and add %C which does this.
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r-- | Modules/datetimemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 488d062..61f9ab7 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -4033,7 +4033,7 @@ datetime_isoformat(PyDateTime_DateTime *self, PyObject *args, PyObject *kw) PyObject *result; int us = DATE_GET_MICROSECOND(self); - if (!PyArg_ParseTupleAndKeywords(args, kw, "|c:isoformat", keywords, &sep)) + if (!PyArg_ParseTupleAndKeywords(args, kw, "|C:isoformat", keywords, &sep)) return NULL; if (us) result = PyUnicode_FromFormat("%04d-%02d-%02d%c%02d:%02d:%02d.%06d", |