1. Jason Pellerin
  2. dozer

Commits

Marius Gedminas  committed 8d87c91

Small optimization.

  • Participants
  • Parent commits 74c83f5
  • Branches trunk

Comments (0)

Files changed (1)

File dozer/templates/logbar.mako

View file
  • Ignore whitespace
         return '%+dms' % time_from_start
 
 def bg_color(event, log_colors):
-    for key in log_colors:
-        if key == event.name:
-            return log_colors[key]
+    if event.name in log_colors:
+        return log_colors[event.name]
     for key in log_colors:
         if event.name.startswith(key):
             return log_colors[key]