Replace redundant dict.get() with [].

This commit is contained in:
Ben Darnell 2014-01-09 20:12:34 -05:00
parent b2039a3dd9
commit c2043a3335
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class LogFormatter(logging.Formatter):
record.asctime = self.formatTime(record, self.datefmt)
if record.levelno in self._colors:
record.color = self._colors.get(record.levelno, '')
record.color = self._colors[record.levelno]
record.end_color = self._normal
else:
record.color = record.end_color = ''