RFE: Ignore warnings in text-mode

Bug #181209 reported by Markus Korn
2
Affects Status Importance Assigned to Milestone
Bug Helper
Fix Released
Undecided
Unassigned
python-launchpad-bugs
Fix Released
Undecided
Unassigned

Bug Description

The current output of bugnumbers looks like:

v$ ./bugnumbers -p inkscape --status "Fix Committed" --sort importance
/home/devel/bughelper/text.dev/launchpadbugs/text_bug.py:22: FutureWarning: text_bug API not stable yet
  warnings.warn("text_bug API not stable yet", FutureWarning)
/home/devel/bughelper/text.dev/launchpadbugs/text_buglist.py:7: FutureWarning: text_buglist API not stable yet, LP returns a list of all bugs ever reported
  warnings.warn("text_buglist API not stable yet, LP returns a list of all bugs ever reported", FutureWarning)
/home/devel/bughelper/text.dev/launchpadbugs/text_buglist.py:16: UserWarning: unable to parse 'infotable' in text-mode
  warnings.warn("unable to parse '%s' in text-mode" %name, UserWarning)
/home/devel/bughelper/text.dev/launchpadbugs/text_buglist.py:16: UserWarning: unable to parse '__class__' in text-mode
  warnings.warn("unable to parse '%s' in text-mode" %name, UserWarning)
/home/devel/bughelper/text.dev/launchpadbugs/text_buglist.py:16: UserWarning: unable to parse 'status' in text-mode
  warnings.warn("unable to parse '%s' in text-mode" %name, UserWarning)
/home/devel/bughelper/text.dev/launchpadbugs/text_buglist.py:16: UserWarning: unable to parse 'importance' in text-mode
  warnings.warn("unable to parse '%s' in text-mode" %name, UserWarning)
/home/devel/bughelper/text.dev/launchpadbugs/text_buglist.py:16: UserWarning: unable to parse 'sourcepackage' in text-mode
  warnings.warn("unable to parse '%s' in text-mode" %name, UserWarning)
/home/devel/bughelper/text.dev/launchpadbugs/text_buglist.py:16: UserWarning: unable to parse 'summary' in text-mode
  warnings.warn("unable to parse '%s' in text-mode" %name, UserWarning)
[Bug 113980 inkscape: Fix Committed/Medium] - Color picker returns nonsense
[Bug 178139 inkscape: Fix Committed/Medium] - Array out of bounds in Icon preview dialog
[Bug 16724 inkscape: Fix Committed/Wishlist] - Inkscape does not use gnome print dialog
[Bug 174872 inkscape: Fix Committed/Undecided] - Crash (inkscape 0.45.1-1) when exporting drawing (or blank page) to PNG

It would be nice if we could ignore most of this warnings per default in bugnumbers.
In contrast the first two ones ("text_bug API not stable yet" and "text_buglist API not stable yet") should not be ignored to show the user that he/she is using an unstable version of py-lp-bugs.

Markus

Revision history for this message
Markus Korn (thekorn) wrote :

This is fixed in the text.dev braches in py-lp-bugs rev 101 and in bughelper rev 222.

The default output now looks like:

$ ./bugnumbers -p inkscape --status "Fix Committed" --sort importance
/home/devel/bughelper/text.dev/launchpadbugs/text_bug.py:22: FutureWarning: text_bug API not stable yet
  warnings.warn("text_bug API not stable yet", FutureWarning)
/home/devel/bughelper/text.dev/launchpadbugs/text_buglist.py:7: FutureWarning: text_buglist API not stable yet, LP returns a list of all bugs ever reported
  warnings.warn("text_buglist API not stable yet, LP returns a list of all bugs ever reported", FutureWarning)
[Bug 113980 inkscape: Fix Committed/Medium] - Color picker returns nonsense
[Bug 178139 inkscape: Fix Committed/Medium] - Array out of bounds in Icon preview dialog
[Bug 16724 inkscape: Fix Committed/Wishlist] - Inkscape does not use gnome print dialog
[Bug 174872 inkscape: Fix Committed/Undecided] - Crash (inkscape 0.45.1-1) when exporting drawing (or blank page) to PNG

To also ignore the FeatureWarnings please run:

$ python -W ignore bugnumbers -p inkscape --status "Fix Committed" --sort importance
[Bug 113980 inkscape: Fix Committed/Medium] - Color picker returns nonsense
[Bug 178139 inkscape: Fix Committed/Medium] - Array out of bounds in Icon preview dialog
[Bug 16724 inkscape: Fix Committed/Wishlist] - Inkscape does not use gnome print dialog
[Bug 174872 inkscape: Fix Committed/Undecided] - Crash (inkscape 0.45.1-1) when exporting drawing (or blank page) to PNG

Markus

Changed in bughelper:
status: New → Fix Committed
Changed in python-launchpad-bugs:
status: New → Fix Committed
Revision history for this message
Markus Korn (thekorn) wrote :

fix released with version 0.2.27 of py-lp-bugs in ubuntu

Changed in python-launchpad-bugs:
status: Fix Committed → Fix Released
Revision history for this message
Markus Korn (thekorn) wrote :

fixed released in hardy (version 0.2.12)

Changed in bughelper:
status: Fix Committed → Fix Released
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.