Bug in v1.5.2 Websucker GUI?

Anton Vredegoor anton at vredegoor.doge.nl
Thu Jun 12 04:10:23 EDT 2003


anton at vredegoor.doge.nl (Anton Vredegoor) wrote:

>On Win98Se, Python23:
>
>>d:\python23\pythonw -u wsgui.py
>Exception in Tkinter callback
>Traceback (most recent call last):
>  File "D:\PYTHON23\lib\lib-tk\Tkinter.py", line 1337, in __call__
>    return self.func(*args)
>  File "wsgui.py", line 163, in go
>    self.sucker.rootdir = os.path.dirname(
>TypeError: unbound method savefilename() must be called with Sucker
>instance as first argument (got App instance instead)
>>Exit code: 0

My bug-fix:

change only 1 line (164):
                websucker.Sucker.savefilename(self, url))
into:
                websucker.Sucker.savefilename(self.sucker, url))

I've tested it and now it works as expected. Can we get this in
Python23 final? 

Anton





More information about the Python-list mailing list