From c2043a333595a981af629e77ba99b4b06929abdf Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Thu, 9 Jan 2014 20:12:34 -0500 Subject: [PATCH] Replace redundant dict.get() with []. --- tornado/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/log.py b/tornado/log.py index a4c74234..36c3dd40 100644 --- a/tornado/log.py +++ b/tornado/log.py @@ -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 = ''