From 484efab28e5e8cc1cbe8335ab989bb14e833e33b Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 10 Nov 2013 21:37:48 +0100 Subject: [PATCH] utils: Remove Python 2.6 workaround --- mopidy/utils/log.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mopidy/utils/log.py b/mopidy/utils/log.py index 715aca1a..dee0fb96 100644 --- a/mopidy/utils/log.py +++ b/mopidy/utils/log.py @@ -12,9 +12,8 @@ def setup_logging(config, verbosity_level, save_debug_log): setup_console_logging(config, verbosity_level) if save_debug_log: setup_debug_logging_to_file(config) - if hasattr(logging, 'captureWarnings'): - # New in Python 2.7 - logging.captureWarnings(True) + + logging.captureWarnings(True) if config['logging']['config_file']: logging.config.fileConfig(config['logging']['config_file'])