[Image-SIG] Bug#133272: python-imaging-doc: pilfont utility does not work (fwd)

Fredrik Lundh fredrik@pythonware.com
Mon, 11 Feb 2002 17:47:00 +0100

simon wrote:

> I just received the attached bug report. Has anyone on this list =
> experienced this problem?

someone played with PyChecker just before the 1.1.2 release,
and got a little carried away...

here's a patch:

Change 3671 by fredrik@modules-hagrid

        (re)moved bogus __init__ call (bug spotted by
        Fred Clare)

Affected files ...

... //modules/pil/PIL/BdfFontFile.py#3 edit

Differences ...

=3D=3D=3D=3D //modules/pil/PIL/BdfFontFile.py#3 (ktext) =3D=3D=3D=3D

@@ -83,14 +84,12 @@

     def __init__(self, fp):

-        FontFile.FontFile.__init__()
+        FontFile.FontFile.__init__(self)

         s =3D fp.readline()
         if s[:13] !=3D "STARTFONT 2.1":
             raise SyntaxError, "not a valid BDF file"

-        FontFile.FontFile.__init__(self)
         props =3D {}
         comments =3D []