From 97c58d2de0aa45de7891051a9e56abb3cda3014f Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 3 Feb 2012 07:31:26 -0500 Subject: [PATCH] Convert tuple to list so it can be popped --- lib/matplotlib/backends/qt4_editor/formlayout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/qt4_editor/formlayout.py b/lib/matplotlib/backends/qt4_editor/formlayout.py index bee116846eda..d0fe92bcf3ef 100644 --- a/lib/matplotlib/backends/qt4_editor/formlayout.py +++ b/lib/matplotlib/backends/qt4_editor/formlayout.py @@ -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 ]