]> granicus.if.org Git - python/commitdiff
(Jack:) fopen arg typo (?) "rw" changed to "rb".
authorGuido van Rossum <guido@python.org>
Fri, 11 Apr 1997 19:12:20 +0000 (19:12 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 11 Apr 1997 19:12:20 +0000 (19:12 +0000)
Modules/rgbimgmodule.c

index 2619541502e506ebb993543728ba22a1d304c015..81f9fcbcdddac2d3c04e7cfb4fa54e8cb91af649 100644 (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;