diff options
| author | Aymeric Augustin | 2013-10-16 23:17:59 +0200 |
|---|---|---|
| committer | Aymeric Augustin | 2013-10-17 18:24:58 +0200 |
| commit | dc19b418a258bf7d7cabebfe83690b5b0291f60f (patch) | |
| tree | 0b00913aa6d1fc23b797717002bcf9c20123db27 /debug_toolbar/panels/sql.py | |
| parent | 87a73758431a417f6f1aa7313260e1049549f713 (diff) | |
| download | django-debug-toolbar-dc19b418a258bf7d7cabebfe83690b5b0291f60f.tar.bz2 | |
Stopped using dict.iter*.
Since performance isn't a primary concern, the non-iterable versions
will do just fine on Python 2.
Diffstat (limited to 'debug_toolbar/panels/sql.py')
| -rw-r--r-- | debug_toolbar/panels/sql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index 7afc6eb..bc70b97 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -139,7 +139,7 @@ class SQLDebugPanel(DebugPanel): if self._queries: width_ratio_tally = 0 factor = int(256.0 / (len(self._databases) * 2.5)) - for n, db in enumerate(self._databases.itervalues()): + for n, db in enumerate(self._databases.values()): rgb = [0, 0, 0] color = n % 3 rgb[color] = 256 - n / 3 * factor |
