diff options
Diffstat (limited to 'scripts/lib/wic/msger.py')
-rw-r--r-- | scripts/lib/wic/msger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/msger.py b/scripts/lib/wic/msger.py index 4d8e704172..fb8336d94a 100644 --- a/scripts/lib/wic/msger.py +++ b/scripts/lib/wic/msger.py | |||
@@ -148,7 +148,7 @@ def _split_msg(head, msg): | |||
148 | return head, msg | 148 | return head, msg |
149 | 149 | ||
150 | def get_loglevel(): | 150 | def get_loglevel(): |
151 | return (k for k, v in LOG_LEVELS.items() if v == LOG_LEVEL).next() | 151 | return next((k for k, v in LOG_LEVELS.items() if v == LOG_LEVEL)) |
152 | 152 | ||
153 | def set_loglevel(level): | 153 | def set_loglevel(level): |
154 | global LOG_LEVEL | 154 | global LOG_LEVEL |