From 0d73194045371f137abd483ac65e5e458c0676c5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 17 2017 13:57:09 +0000 Subject: Fix the flake8 check Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/mail_logging.py b/pagure/mail_logging.py index 9fb62b6..32bbb9d 100644 --- a/pagure/mail_logging.py +++ b/pagure/mail_logging.py @@ -26,7 +26,6 @@ import logging import logging.handlers import inspect -import os import socket import traceback @@ -129,7 +128,7 @@ class ContextInjector(logging.Filter): # pragma: no cover def get_current_process(): """ Return the current process (PID). """ if not psutil: - return "Could not import psutil for %r" % mypid + return "Could not import psutil" return psutil.Process()