summaryrefslogtreecommitdiffstats
path: root/Modules/datetimemodule.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-06-10 17:42:36 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-06-10 17:42:36 (GMT)
commit99a3dce92decb4c43888faf6bffcbe1632657e60 (patch)
treea693b76fc0cbfa6cb676be1f8dbca2c7314664f1 /Modules/datetimemodule.c
parentb67b53db51b470ba0740c97abc16e095ec0cfd28 (diff)
downloadcpython-99a3dce92decb4c43888faf6bffcbe1632657e60.zip
cpython-99a3dce92decb4c43888faf6bffcbe1632657e60.tar.gz
cpython-99a3dce92decb4c43888faf6bffcbe1632657e60.tar.bz2
More reverting of r63675 per the mailing list discussions. This restores
occurances of PyBytes_ in the code to their original PyString_ names. The bytesobject.c file will be renamed back to stringobject.c in a future checkin.
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r--Modules/datetimemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 3adf0e2..3443b42 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -1207,9 +1207,9 @@ wrap_strftime(PyObject *object, const char *format, size_t format_len,
* is expensive, don't unless they're actually used.
*/
totalnew = format_len + 1; /* realistic if no %z/%Z/%f */
- newfmt = PyBytes_FromStringAndSize(NULL, totalnew);
+ newfmt = PyString_FromStringAndSize(NULL, totalnew);
if (newfmt == NULL) goto Done;
- pnew = PyBytes_AsString(newfmt);
+ pnew = PyString_AsString(newfmt);
usednew = 0;
pin = format;