From 90128cf2d5548c4b3892f010e6ae3b43a6cc68cf Mon Sep 17 00:00:00 2001 From: noobie Date: Wed, 19 Oct 2016 20:32:27 +0200 Subject: [PATCH] Fix the lambda function for changing the mapping of the fields The connect signal passes a bool to the given function by default, we need to ignore it. use underscore for the sake of idiomology --- aqt/importing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/importing.py b/aqt/importing.py index 0bb5d2219..2ada664af 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -225,7 +225,7 @@ you can enter it here. Use \\t to represent tab."""), self.grid.addWidget(QLabel(text), num, 1) button = QPushButton(_("Change")) self.grid.addWidget(button, num, 2) - button.clicked.connect(lambda s=self,n=num: s.changeMappingNum(n)) + button.clicked.connect(lambda _, s=self,n=num: s.changeMappingNum(n)) def changeMappingNum(self, n): f = ChangeMap(self.mw, self.importer.model, self.mapping[n]).getField()