Commit 0d7b62fa authored by Guillaume Seguin's avatar Guillaume Seguin

Fix python2 vs 3 typo

parent 4581fa7f
...@@ -32,7 +32,7 @@ def install_locale(domain): ...@@ -32,7 +32,7 @@ def install_locale(domain):
def setup_logging(out): def setup_logging(out):
logger = logging.getLogger() logger = logging.getLogger()
logger.handlers.clear() logger.handlers = []
logging_handler = logging.StreamHandler(out) logging_handler = logging.StreamHandler(out)
logging_handler.setFormatter(logging.Formatter("[%(levelname)s] %(message)s")) logging_handler.setFormatter(logging.Formatter("[%(levelname)s] %(message)s"))
logger.addHandler(logging_handler) logger.addHandler(logging_handler)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment