mirror of https://github.com/python/cpython
(Jack:) fopen arg typo (?) "rw" changed to "rb".
This commit is contained in:
parent
fb421c82a9
commit
fd16d9438d
|
@ -249,7 +249,7 @@ sizeofimage(self, args)
|
|||
if (!PyArg_Parse(args, "s", &name))
|
||||
return NULL;
|
||||
|
||||
inf = fopen(name, "rw");
|
||||
inf = fopen(name, "rb");
|
||||
if (!inf) {
|
||||
PyErr_SetString(ImgfileError, "can't open image file");
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue