mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
fix flake8 warnings
This commit is contained in:
parent
21feab7ab1
commit
02f7e78fd3
2 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ def span_from_str(span_str):
|
||||||
years = [normalize_year(x, years[0]) for x in years]
|
years = [normalize_year(x, years[0]) for x in years]
|
||||||
except BucketError as exc:
|
except BucketError as exc:
|
||||||
raise ui.UserError("invalid range defined for year bucket '%s': %s" %
|
raise ui.UserError("invalid range defined for year bucket '%s': %s" %
|
||||||
(span_str, exc))
|
(span_str, exc))
|
||||||
|
|
||||||
res = {'from': years[0], 'str': span_str}
|
res = {'from': years[0], 'str': span_str}
|
||||||
if len(years) > 1:
|
if len(years) > 1:
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ class BucketPluginTest(unittest.TestCase, TestHelper):
|
||||||
|
|
||||||
def test_alpha_first_last_chars(self):
|
def test_alpha_first_last_chars(self):
|
||||||
"""Alphabet buckets can be named by listing the 'from-to' syntax"""
|
"""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('garry'), 'F-H')
|
||||||
self.assertEqual(self.plugin._tmpl_bucket('2pac'), '0->9')
|
self.assertEqual(self.plugin._tmpl_bucket('2pac'), '0->9')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue