[twill] Working around <br/> issue?

C. Titus Brown ctb at msu.edu
Tue Jan 5 12:59:13 PST 2010


On Mon, Jan 04, 2010 at 08:55:44PM +0000, John J Lee wrote:
> On Sun, 3 Jan 2010, C. Titus Brown wrote:
> [...]
>>>> Traceback (most recent call last):
>>>>   File "/usr/bin/twill-sh", line 20, in <module>
>>>>     twill.shell.main()
>>>>   File "/var/lib/python-support/python2.5/twill/shell.py", line 387,
>>>>  in main shell.cmdloop(welcome_msg)
>>>>   File "/usr/lib/python2.5/cmd.py", line 142, in cmdloop
>>>>     stop = self.onecmd(line)
>>>>   File "/usr/lib/python2.5/cmd.py", line 219, in onecmd
>>>>     return func(arg)
>>>>   File "/var/lib/python-support/python2.5/twill/shell.py", line 42,
>>>>  in do_cmd print '\nERROR: %s\n' % (str(e),)
>>>>   File "/usr/lib/python2.5/HTMLParser.py", line 59, in __str__
>>>>     result = self.msg
>>>> AttributeError: 'ParseError' object has no attribute 'msg'
> [...]
>> This can in turn be traced to the munged inheritance hierarchy in ClientForm.py
>> around line 440, where ClientForm.ParseError inherits from
>> sgmllib.SGMLParseError (which doesn't check to make sure msg is set) as well as
>> HTMLParser.HTMLParser (which does).
>
> http://github.com/jjlee/mechanize/issues/closed#issue/1
>
> It's closed because I couldn't reproduce it.

OK, hope we can get Misha to send me the HTML!

> Note that ClientForm has been merged into the mechanize project:
>
> http://github.com/jjlee/mechanize

Yes, I know -- in case I wasn't clear, it's not at all your fault that twill is
so backwards wrt mechanize :)

--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the twill mailing list