From c887ed177b551186dc30f7528cd23c018ca2b69d Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 4 Nov 2010 17:25:35 +0100 Subject: [PATCH] allow info messages even if badness scoring is used --- Filter.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/Filter.py b/Filter.py index 4b5ca1e..baaee45 100644 --- a/Filter.py +++ b/Filter.py @@ -47,7 +47,12 @@ def _print(msgtype, pkg, reason, details): badness = 0 if threshold >= 0: badness = Config.badness(reason) - msgtype = badness and "E" or "W" + # anything with badness is an error + if badness: + msgtype == 'E' + # errors without badness become warnings + elif msgtype == 'E': + msgtype = 'W' ln = "" if pkg.current_linenum is not None: -- 1.7.1