(Jack:) fopen arg typo (?) "rw" changed to "rb".

This commit is contained in:
Guido van Rossum 1997-04-11 19:12:20 +00:00
parent fb421c82a9
commit fd16d9438d
1 changed files with 1 additions and 1 deletions

View File

@ -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;