From 02f7e78fd36fda65d2169f1a52995f1a7e2af6af Mon Sep 17 00:00:00 2001 From: Fabrice Laporte Date: Sat, 10 May 2014 10:57:44 +0200 Subject: [PATCH] fix flake8 warnings --- beetsplug/bucket.py | 2 +- test/test_bucket.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/bucket.py b/beetsplug/bucket.py index 230cf7fb1..f31339aa1 100644 --- a/beetsplug/bucket.py +++ b/beetsplug/bucket.py @@ -63,7 +63,7 @@ def span_from_str(span_str): years = [normalize_year(x, years[0]) for x in years] except BucketError as exc: raise ui.UserError("invalid range defined for year bucket '%s': %s" % - (span_str, exc)) + (span_str, exc)) res = {'from': years[0], 'str': span_str} if len(years) > 1: diff --git a/test/test_bucket.py b/test/test_bucket.py index e6679f3c1..f8b86bf6d 100644 --- a/test/test_bucket.py +++ b/test/test_bucket.py @@ -96,7 +96,7 @@ class BucketPluginTest(unittest.TestCase, TestHelper): def test_alpha_first_last_chars(self): """Alphabet buckets can be named by listing the 'from-to' syntax""" - self._setup_config(bucket_alpha=['0->9','A->D', 'F-H', 'I->Z']) + self._setup_config(bucket_alpha=['0->9', 'A->D', 'F-H', 'I->Z']) self.assertEqual(self.plugin._tmpl_bucket('garry'), 'F-H') self.assertEqual(self.plugin._tmpl_bucket('2pac'), '0->9')