diff Objects/fileobject.c @ 42513:a24e27f05e48

In PyFile_WriteString(), call PyUnicode_FromString() instead of PyString_FromString(). This is arguably more correct, even if it shouldn't matter much (all the input is likely to be ASCII).
author Guido van Rossum <guido@python.org>
date Thu, 09 Aug 2007 22:58:05 +0000
parents bf5d04e0da4c
children ac192f89c109
line wrap: on
line diff
--- a/Objects/fileobject.c	Thu Aug 09 22:51:04 2007 +0000
+++ b/Objects/fileobject.c	Thu Aug 09 22:58:05 2007 +0000
@@ -177,7 +177,7 @@
 		return -1;
 	}
 	else if (!PyErr_Occurred()) {
-		PyObject *v = PyString_FromString(s);
+		PyObject *v = PyUnicode_FromString(s);
 		int err;
 		if (v == NULL)
 			return -1;