]> granicus.if.org Git - python/commitdiff
Remove extraneous format character from PyArg_ParseTuple call in
authorMichael W. Hudson <mwh@python.net>
Mon, 13 Jun 2005 17:50:18 +0000 (17:50 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 13 Jun 2005 17:50:18 +0000 (17:50 +0000)
marshal_loads.

Bugfix candidate.

Python/marshal.c

index 59aabacabf4dfb649d393bfdb58402425c3050ef..6c6570096673db4683b9f24f98b51107c11bdfa4 100644 (file)
@@ -1081,7 +1081,7 @@ marshal_loads(PyObject *self, PyObject *args)
        char *s;
        int n;
        PyObject* result;
-       if (!PyArg_ParseTuple(args, "s#|i:loads", &s, &n))
+       if (!PyArg_ParseTuple(args, "s#:loads", &s, &n))
                return NULL;
        rf.fp = NULL;
        rf.ptr = s;