Commit 6a00cd7
authored
Simplify DebugToolbar.store() (#1351)
django.utils.datastructures.SortedDict has been unused since
a0569d7.
Can access class variables using self so drop unnecessary type() call.
range() supports passing a first argument larger than the second, in
which case it doesn't yield and values.
>>> list(range(2, 1))
[]1 parent 76049e6 commit 6a00cd7
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
104 | 98 | | |
105 | 99 | | |
106 | 100 | | |
| |||
0 commit comments