From 9be993c76d4bd1ddfcd1636e488f044ae0201605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20J=20D=20Johnsen?= Date: Fri, 29 Nov 2019 21:31:27 +0100 Subject: [PATCH] Remove unnecessary lambda Changing the signature of _renderScheduledPreview() made the use of a lambda in _renderPreview() unnecessary. Remove it to prevent linting errors. --- aqt/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/browser.py b/aqt/browser.py index 04dffa4ef..f9959dce3 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -1375,7 +1375,7 @@ where id in %s""" % ids2str(sf)) elapMS = int((time.time() - self._lastPreviewRender)*1000) if elapMS < 500: self._previewTimer = self.mw.progress.timer( - 500-elapMS, lambda: self._renderScheduledPreview(), False) + 500-elapMS, self._renderScheduledPreview, False) else: self._renderScheduledPreview()