diff options
Diffstat (limited to 'logilab/common/logging_ext.py')
-rw-r--r-- | logilab/common/logging_ext.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/logilab/common/logging_ext.py b/logilab/common/logging_ext.py index 3b6a580..9657581 100644 --- a/logilab/common/logging_ext.py +++ b/logilab/common/logging_ext.py @@ -24,8 +24,6 @@ import os import sys import logging -from six import string_types - from logilab.common.textutils import colorize_ansi @@ -133,7 +131,7 @@ def get_threshold(debug=False, logthreshold=None): logthreshold = logging.DEBUG else: logthreshold = logging.ERROR - elif isinstance(logthreshold, string_types): + elif isinstance(logthreshold, str): logthreshold = getattr(logging, THRESHOLD_MAP.get(logthreshold, logthreshold)) return logthreshold |