From 1b7fad37167095f4c1981ed7987254ff5c6de6c0 Mon Sep 17 00:00:00 2001 From: "ning.xie" Date: Sun, 19 Apr 2015 12:41:02 +0800 Subject: [PATCH] fix pep8 with logging.py --- flask/logging.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flask/logging.py b/flask/logging.py index b741ee31..5a1f149c 100644 --- a/flask/logging.py +++ b/flask/logging.py @@ -57,10 +57,10 @@ def create_logger(app): Logger = getLoggerClass() class DebugLogger(Logger): - def getEffectiveLevel(x): - if x.level == 0 and app.debug: + def getEffectiveLevel(self): + if self.level == 0 and app.debug: return DEBUG - return Logger.getEffectiveLevel(x) + return Logger.getEffectiveLevel(self) class DebugHandler(StreamHandler): def emit(self, record):