Use the more idiomatic list().

This commit is contained in:
blink1073
2014-02-17 05:39:33 -06:00
parent 3931f18169
commit 44dc93d373
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class OverlayPlugin(Plugin):
self._overlay_plot = None
self._overlay = None
self.cmap = None
self.color_names = [c for c in self.colors.keys()]
self.color_names = list(self.colors.keys())
def attach(self, image_viewer):
super(OverlayPlugin, self).attach(image_viewer)
+1 -1
View File
@@ -232,7 +232,7 @@ class ComboBox(BaseWidget):
self.name_label.setAlignment(QtCore.Qt.AlignLeft)
self._combo_box = QtGui.QComboBox()
self._combo_box.addItems([i for i in items])
self._combo_box.addItems(list(items))
self.layout = QtGui.QHBoxLayout(self)
self.layout.addWidget(self.name_label)