diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-20 11:02:38 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-20 11:02:38 (GMT) |
commit | bc1f886170286291ad270d1935bd61151e398110 (patch) | |
tree | eb5ef3a5949160a92703699ecf2b326d5ea6628b /Modules/datetimemodule.c | |
parent | 32a4c7141911c58f01afe7b89482dbd4ce4f817f (diff) | |
download | cpython-bc1f886170286291ad270d1935bd61151e398110.zip cpython-bc1f886170286291ad270d1935bd61151e398110.tar.gz cpython-bc1f886170286291ad270d1935bd61151e398110.tar.bz2 |
Change %c format specifier for PyArg_ParseTuple() so that it accepts
a unicode character (an int * must be passed as the argument).
Change %c format specifier for Py_BuildValue() so that it outputs
a unicode object.
Fix datetime.datetime.isoformat(), so that it works if sep is
a unicode character > U+00FF.
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 d39791a..488d062 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -4027,7 +4027,7 @@ datetime_str(PyDateTime_DateTime *self) static PyObject * datetime_isoformat(PyDateTime_DateTime *self, PyObject *args, PyObject *kw) { - char sep = 'T'; + int sep = 'T'; static char *keywords[] = {"sep", NULL}; char buffer[100]; PyObject *result; |