Skip to content

Commit

Permalink
Convert tuple to list so it can be popped
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Feb 3, 2012
1 parent ae4a308 commit 97c58d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/qt4_editor/formlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def setup(self):
elif isinstance(value, (str, unicode)):
field = QLineEdit(value, self)
elif isinstance(value, (list, tuple)):
selindex = value.pop(0)
selindex = list(value).pop(0)
field = QComboBox(self)
if isinstance(value[0], (list, tuple)):
keys = [ key for key, _val in value ]
Expand Down

0 comments on commit 97c58d2

Please sign in to comment.