Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01fca11

Browse files
author
Michael W. Hudson
committed
Remove extraneous format character from PyArg_ParseTuple call in
marshal_loads. Bugfix candidate.
1 parent f9d88ab commit 01fca11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/marshal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ marshal_loads(PyObject *self, PyObject *args)
10811081
char *s;
10821082
int n;
10831083
PyObject* result;
1084-
if (!PyArg_ParseTuple(args, "s#|i:loads", &s, &n))
1084+
if (!PyArg_ParseTuple(args, "s#:loads", &s, &n))
10851085
return NULL;
10861086
rf.fp = NULL;
10871087
rf.ptr = s;

0 commit comments

Comments
 (0)