SyntaxWarning when installing python-mechanize

Bug #336477 reported by Ori Avtalion
2
Affects Status Importance Assigned to Milestone
python-mechanize (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: python-mechanize

When installing python-mechanize via apt-get, this is printed:

Setting up python-mechanize (0.1.7b-3ubuntu1) ...
/usr/lib/python2.6/dist-packages/mechanize/_msiecookiejar.py:255: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert (sig in ("HASH", "LEAK",

Revision history for this message
Ori Avtalion (salty-horse) wrote :

This is a python 2.6 warning that has been fixed upstream in

I'm attaching a small patch derived from upstream's r60274 that fixes the problem in Ubuntu.

Revision history for this message
Ori Avtalion (salty-horse) wrote :

Fixed in 0.1.11-0ubuntu1

Changed in python-mechanize:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.