projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
351a7dd
)
set_verbosity(): do something reasonable for out-of-range verbosity
author
Guido van Rossum
<guido@python.org>
Thu, 20 Feb 2003 02:09:30 +0000
(
02:09
+0000)
committer
Guido van Rossum
<guido@python.org>
Thu, 20 Feb 2003 02:09:30 +0000
(
02:09
+0000)
levels. (Previously, -vvv would be the same as -q!)
Lib/distutils/log.py
patch
|
blob
|
history
diff --git
a/Lib/distutils/log.py
b/Lib/distutils/log.py
index 0442033d66d895512a009db50eb6053208db08ce..01420da9af0210a65f4b75d27ef9067806099c45 100644
(file)
--- 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:
+
el
if v == 1:
set_threshold(INFO)
-
if v =
= 2:
+
elif v >
= 2:
set_threshold(DEBUG)