[twill] Working around <br/> issue?
John J Lee
jjl at pobox.com
Mon Jan 4 12:55:44 PST 2010
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.
Note that ClientForm has been merged into the mechanize project:
http://github.com/jjlee/mechanize
John
More information about the twill
mailing list