[twill] Two bugs in twill

Paweł Stradomski pstradomski at gmail.com
Tue Jul 14 06:29:30 PDT 2009


I've found two bugs in twill 0.9

First one:

browser.py:63: self._browser.addheaders = [("Accept", "text/html; */*")]
it should be:  self._browser.addheaders = [("Accept", "text/html, */*")]

There is semicolon instead of a comma. This causes problems with applications 
actually checking Accept header (eg. some Rails applications).

Second problem, there seems to be a debug message left:
./parse.py:215:            print 'AT LINE:', cmdinfo

It goes straight to the stdout while all other output is captured to a stream.

Paweł Stradomski

More information about the twill mailing list