Skip to content

Commit 97c58d2

Browse files
committed
Convert tuple to list so it can be popped
1 parent ae4a308 commit 97c58d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt4_editor/formlayout.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def setup(self):
271271
elif isinstance(value, (str, unicode)):
272272
field = QLineEdit(value, self)
273273
elif isinstance(value, (list, tuple)):
274-
selindex = value.pop(0)
274+
selindex = list(value).pop(0)
275275
field = QComboBox(self)
276276
if isinstance(value[0], (list, tuple)):
277277
keys = [ key for key, _val in value ]

0 commit comments

Comments
 (0)