pmock.py:333: Warning: 'with' will become a reserved keyword in Python 2.6
Bug #299099 reported by
Stein Magnus Jodal
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pmock (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When installing python-pmock on intrepid, the following warning is printed due to a method named 'with', which will be a reserved keyword in Python 2.6:
Selecting previously deselected package python-pmock.
(Reading database ... 121144 files and directories currently installed.)
Unpacking python-pmock (from .../python-
Setting up python-pmock (0.3-5.1) ...
Processing triggers for python-support ...
/var/lib/
To post a comment you must log in.
I'm not sure how to handle this. I went to the project sourceforge page and checked it out and it seems that the main project has this problem too. It would be pretty easy to just change the name of the function on line 313, but then it might break something else. What's the best way to handle this? Place a bug report with the project? Submit a patch to him?