From 752162a434db0b4ef3a83f04d6da1456a05e70b4 Mon Sep 17 00:00:00 2001 From: JoeLametta Date: Fri, 29 May 2020 14:03:27 +0000 Subject: [PATCH] Fix two flake8 errors Signed-off-by: JoeLametta --- whipper/extern/task/task.py | 4 ++-- whipper/test/test_image_toc.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/whipper/extern/task/task.py b/whipper/extern/task/task.py index 7e08fb8d..f70e68c0 100644 --- a/whipper/extern/task/task.py +++ b/whipper/extern/task/task.py @@ -233,8 +233,8 @@ def addListener(self, listener): def _notifyListeners(self, methodName, *args, **kwargs): if self._listeners: - for l in self._listeners: - method = getattr(l, methodName) + for listener in self._listeners: + method = getattr(listener, methodName) try: method(self, *args, **kwargs) # FIXME: catching too general exception (Exception) diff --git a/whipper/test/test_image_toc.py b/whipper/test/test_image_toc.py index 1f651124..177622b3 100644 --- a/whipper/test/test_image_toc.py +++ b/whipper/test/test_image_toc.py @@ -216,7 +216,7 @@ def testMusicBrainz(self): self.assertEqual(self.toc.table.getMusicBrainzDiscId(), "KnpGsLhvH.lPrNc1PBL21lb9Bg4-") self.assertEqual(self.toc.table.getMusicBrainzSubmitURL(), - "https://musicbrainz.org/cdtoc/attach?toc=1+12+195856+150+15687+31841+51016+66616+81352+99559+116070+133243+149997+161710+177832&tracks=12&id=KnpGsLhvH.lPrNc1PBL21lb9Bg4-") # noqa: E501 + "https://musicbrainz.org/cdtoc/attach?toc=1+12+195856+150+15687+31841+51016+66616+81352+99559+116070+133243+149997+161710+177832&tracks=12&id=KnpGsLhvH.lPrNc1PBL21lb9Bg4-") # noqa: E501 # FIXME: I don't trust this toc, but I can't find the CD anymore