[Python-checkins] r55734 - python/branches/cpy_merge/Modules/_string_iomodule.c

alexandre.vassalotti python-checkins at python.org
Fri Jun 1 19:32:19 CEST 2007


Author: alexandre.vassalotti
Date: Fri Jun  1 19:32:18 2007
New Revision: 55734

Modified:
   python/branches/cpy_merge/Modules/_string_iomodule.c
Log:
Fix the error messages.


Modified: python/branches/cpy_merge/Modules/_string_iomodule.c
==============================================================================
--- python/branches/cpy_merge/Modules/_string_iomodule.c	(original)
+++ python/branches/cpy_merge/Modules/_string_iomodule.c	Fri Jun  1 19:32:18 2007
@@ -328,7 +328,7 @@
 
 	if (!PyArg_ParseTuple(args,
 			      "u#;write() may only be called on"
-			      "unicode strings", &ustr, &n))
+			      " unicode strings", &ustr, &n))
 		return NULL;
 
 	if (write_str(self, ustr, n) == -1)
@@ -406,7 +406,9 @@
 
 	assert(type != NULL && type->tp_alloc != NULL);
 
-	if (!PyArg_ParseTuple(args, "|u#:StringIO", &buf, &n))
+	if (!PyArg_ParseTuple(args,
+			      "|u#;StringIO() may only given a"
+			      " unicode string", &buf, &n))
 		return NULL;
 
 	self = (StringIOObject *)type->tp_alloc(type, 0);


More information about the Python-checkins mailing list