RFE: add a bug.has_target() method
Bug #137434 reported by
Markus Korn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-launchpad-bugs |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
It would be nice to have a function to check if a bug has a task with a given target.
Improving this we should also fix Info.target as it seems to always return None.
Related branches
Changed in python-launchpad-bugs: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
This patch fixes Info.target and adds a Bug.has_ target( <target> ) method. "ubuntu" )
Example:
>>> b = Bug(88102)
>>> b.has_target(
True
>>> b.has_target(None) #(**)
True
>>> b.has_target("bla")
False
(**) .has_target(None) checks if there is a task without a target, means is targeted to upstream