Skip to content

Commit

Permalink
Attempt to pacify pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed May 4, 2018
1 parent 1aa0e11 commit bd4ea78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/lib/CIME/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def __init__(self, indent, fmt=None, datefmt=None):
logging.Formatter.__init__(self, fmt, datefmt)
self._indent = indent

def format(self, rec):
rec.msg = "{}{}".format(self._indent, rec.msg)
out = logging.Formatter.format(self, rec)
def format(self, record):
record.msg = "{}{}".format(self._indent, record.msg)
out = logging.Formatter.format(self, record)
return out

def set_logger_indent(indent):
Expand Down

0 comments on commit bd4ea78

Please sign in to comment.