changeset 361:109800464463

`dict.update` can take a sequence of key/value pairs, so remove redundant building of another dict
author mgood
date Wed, 24 Jan 2007 23:25:40 +0000
parents 5bc81e597352
children 4645863d7966
files bitten/trac_ext/web_ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/trac_ext/web_ui.py
+++ b/bitten/trac_ext/web_ui.py
@@ -587,7 +587,7 @@
         summarizers = {} # keyed by report type
         for summarizer in self.report_summarizers:
             categories = summarizer.get_supported_categories()
-            summarizers.update(dict([(cat, summarizer) for cat in categories]))
+            summarizers.update([(cat, summarizer) for cat in categories])
 
         req.hdf['build'] = _build_to_hdf(self.env, req, build)
         steps = []
Copyright (C) 2012-2017 Edgewall Software