[twill] Syntax warning when installing twill

Jonathan Rogers jrogers at socialserve.com
Wed Oct 5 15:18:29 PDT 2011


Christoph Zwerschke wrote:
> When installing twill, I get a syntax warning about the following
> statement in twill/other_packages/_mechanize_dist/_msiecookiejar.py:
> 
>                 assert (sig in ("HASH", "LEAK",
>                                 self.padding, "\x00\x00\x00\x00"),
>                         "unrecognized MSIE index.dat record: %s" %
>                         binary_to_str(sig))
> 
> The comma at the beginning of the first line should in fact be at the
> end of the second line:
> 
>                 assert sig in ("HASH", "LEAK",
>                                 self.padding, "\x00\x00\x00\x00"), (
>                         "unrecognized MSIE index.dat record: %s" %
>                         binary_to_str(sig))

That bug is in the ancient version of mechanize included with Twill. I
have ripped that out and made Twill work with a standard, current
version of mechanize. Please try out my branch and see if it works for you:

<URL:https://github.com/JonathanRRogers/twill>

-- 
Jonathan Ross Rogers



More information about the twill mailing list