diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-15 04:52:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-15 04:52:26 +0400 |
commit | 7f083c45bee15f7540e2a35a725efe28fc962239 (patch) | |
tree | 7d317b3776174ff36d20338f83c32313f0375d57 /release/scripts/modules | |
parent | 4242baa704a516400a415f4f05b3e908cc41ea27 (diff) |
use dict comprehension where possible
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index b1c5429d4ba..9d6f5ce7b2f 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -444,7 +444,7 @@ class Mesh(bpy_types.ID): if not hasattr(edges, "pop"): edges = edges[:] - edge_dict = dict((ed.key, ed) for ed in self.edges if ed.selected) + edge_dict = {ed.key: ed for ed in self.edges if ed.selected} while edges: current_edge = edges.pop() |