[Python-checkins] r65756 - python/branches/tlee-ast-optimize/Modules/pyexpat.c

thomas.lee python-checkins at python.org
Sun Aug 17 13:29:59 CEST 2008


Author: thomas.lee
Date: Sun Aug 17 13:29:59 2008
New Revision: 65756

Log:
Use list() instead of str() for empty lnotab in pyexpat.

Modified:
   python/branches/tlee-ast-optimize/Modules/pyexpat.c

Modified: python/branches/tlee-ast-optimize/Modules/pyexpat.c
==============================================================================
--- python/branches/tlee-ast-optimize/Modules/pyexpat.c	(original)
+++ python/branches/tlee-ast-optimize/Modules/pyexpat.c	Sun Aug 17 13:29:59 2008
@@ -267,7 +267,7 @@
     PyObject *filename = NULL;
 
     if (handler_info[slot].tb_code == NULL) {
-        code = PyString_FromString("");
+        code = PyList_New(0);
         if (code == NULL)
             goto failed;
         name = PyString_FromString(func_name);


More information about the Python-checkins mailing list