]> granicus.if.org Git - python/commitdiff
use the 's' format code instead of 'U'
authorBenjamin Peterson <benjamin@python.org>
Mon, 7 Jun 2010 22:24:18 +0000 (22:24 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 7 Jun 2010 22:24:18 +0000 (22:24 +0000)
Parser/asdl_c.py

index c1e07d2200d65a049474ceb18f29f37e1937a2d1..2b3be2b60688c20908dcb8343c7502f771c8b08f 100755 (executable)
@@ -722,7 +722,7 @@ static PyTypeObject* make_type(char *type, PyTypeObject* base, char**fields, int
         }
         PyTuple_SET_ITEM(fnames, i, field);
     }
-    result = PyObject_CallFunction((PyObject*)&PyType_Type, "U(O){sOss}",
+    result = PyObject_CallFunction((PyObject*)&PyType_Type, "s(O){sOss}",
                     type, base, "_fields", fnames, "__module__", "_ast");
     Py_DECREF(fnames);
     return (PyTypeObject*)result;