Author: guido.van.rossum
Date: Wed Aug 29 16:26:02 2007
New Revision: 57660

Modified:
   python/branches/py3k/Modules/_sqlite/cursor.c
Log:
Straggler (forgot to save this earlier).


Modified: python/branches/py3k/Modules/_sqlite/cursor.c
==============================================================================
--- python/branches/py3k/Modules/_sqlite/cursor.c       (original)
+++ python/branches/py3k/Modules/_sqlite/cursor.c       Wed Aug 29 16:26:02 2007
@@ -497,10 +497,9 @@
         rc = pysqlite_statement_reset(self->statement);
     }
 
-    operation_cstr = PyUnicode_AsString(operation);
+    operation_cstr = PyUnicode_AsStringAndSize(operation, &operation_len);
     if (operation == NULL)
         goto error;
-    operation_len = strlen(operation_cstr); /* XXX */
 
     /* reset description and rowcount */
     Py_DECREF(self->description);
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to