diff options
author | Thomas Heller <theller@ctypes.org> | 2007-11-15 20:48:54 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2007-11-15 20:48:54 (GMT) |
commit | 519a042c7c248e3ae23cf2a3c1152f91a5bd2791 (patch) | |
tree | 3eaef917fda4776da67d0426754f810e59d9f183 /Modules/datetimemodule.c | |
parent | 6e8ea0fd9c46978cf3101bd3ea94022751464ad9 (diff) | |
download | cpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.zip cpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.tar.gz cpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.tar.bz2 |
Replace PyObject_Unicode with PyObject_Str everywhere, and remove the
#define for PyObject_Unicode in object.h.
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r-- | Modules/datetimemodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 9342b19..bacc9ef 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -2444,7 +2444,7 @@ date_format(PyDateTime_Date *self, PyObject *args) /* if the format is zero length, return str(self) */ if (PyUnicode_GetSize(format) == 0) - return PyObject_Unicode((PyObject *)self); + return PyObject_Str((PyObject *)self); return PyObject_CallMethod((PyObject *)self, "strftime", "O", format); } @@ -3220,7 +3220,7 @@ time_format(PyDateTime_Time *self, PyObject *args) /* if the format is zero length, return str(self) */ if (PyUnicode_GetSize(format) == 0) - return PyObject_Unicode((PyObject *)self); + return PyObject_Str((PyObject *)self); return PyObject_CallMethod((PyObject *)self, "strftime", "O", format); } |