From a85dbeb61fe9357b15b4f987d9bc62f67e77b55f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 20 Feb 2003 02:09:30 +0000 Subject: set_verbosity(): do something reasonable for out-of-range verbosity levels. (Previously, -vvv would be the same as -q!) --- Lib/distutils/log.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/distutils/log.py b/Lib/distutils/log.py index 0442033..01420da 100644 --- a/Lib/distutils/log.py +++ b/Lib/distutils/log.py @@ -53,9 +53,9 @@ def set_threshold(level): _global_log.threshold = level def set_verbosity(v): - if v == 0: + if v <= 0: set_threshold(WARN) - if v == 1: + elif v == 1: set_threshold(INFO) - if v == 2: + elif v >= 2: set_threshold(DEBUG) -- cgit v0.12