diff --git a/mopidy/scanner.py b/mopidy/scanner.py index 0c78839b..d28d328a 100644 --- a/mopidy/scanner.py +++ b/mopidy/scanner.py @@ -154,8 +154,8 @@ class Scanner(object): self.fakesink.connect('handoff', self.process_handoff) self.uribin = gst.element_factory_make('uridecodebin') - self.uribin.set_property('caps', - gst.Caps(b'audio/x-raw-int; audio/x-raw-float')) + self.uribin.set_property( + 'caps', gst.Caps(b'audio/x-raw-int; audio/x-raw-float')) self.uribin.connect('pad-added', self.process_new_pad) self.pipe = gst.element_factory_make('pipeline') diff --git a/mopidy/utils/config.py b/mopidy/utils/config.py index 09278535..21846fbb 100644 --- a/mopidy/utils/config.py +++ b/mopidy/utils/config.py @@ -253,7 +253,8 @@ class ExpandedPath(bytes): class Path(ConfigValue): - """File system path that will be expanded with mopidy.utils.path.expand_path + """File system path that will be expanded with + mopidy.utils.path.expand_path Supports: optional, choices and secret. """ @@ -275,9 +276,9 @@ class ConfigSchema(object): """Logical group of config values that correspond to a config section. Schemas are set up by assigning config keys with config values to - instances. Once setup :meth:`convert` can be called with a list of - ``(key, value)`` tuples to process. For convienience we also support - :meth:`format` method that can used for printing out the converted values. + instances. Once setup :meth:`convert` can be called with a list of ``(key, + value)`` tuples to process. For convienience we also support :meth:`format` + method that can used for printing out the converted values. """ # TODO: Use collections.OrderedDict once 2.6 support is gone (#344) def __init__(self): diff --git a/mopidy/utils/log.py b/mopidy/utils/log.py index db9a0c7c..ff593e09 100644 --- a/mopidy/utils/log.py +++ b/mopidy/utils/log.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import logging import logging.handlers -from . import deps, versioning +from . import versioning def setup_logging(config, verbosity_level, save_debug_log): diff --git a/tests/exceptions_test.py b/tests/exceptions_test.py index 12a18338..c1dd7634 100644 --- a/tests/exceptions_test.py +++ b/tests/exceptions_test.py @@ -29,7 +29,8 @@ class ExceptionsTest(unittest.TestCase): exceptions.ConfigError, exceptions.MopidyException)) def test_config_error_provides_getitem(self): - exception = exceptions.ConfigError({'field1': 'msg1', 'field2': 'msg2'}) + exception = exceptions.ConfigError( + {'field1': 'msg1', 'field2': 'msg2'}) self.assertEqual('msg1', exception['field1']) self.assertEqual('msg2', exception['field2']) self.assertItemsEqual(['field1', 'field2'], exception) diff --git a/tests/utils/config_test.py b/tests/utils/config_test.py index bf26b2e7..c823427b 100644 --- a/tests/utils/config_test.py +++ b/tests/utils/config_test.py @@ -441,7 +441,8 @@ class LogLevelConfigSchemaTest(unittest.TestCase): def test_format(self): schema = config.LogLevelConfigSchema() expected = ['[levels]', 'baz = info', 'foo.bar = debug'] - result = schema.format('levels', {'foo.bar': logging.DEBUG, 'baz': logging.INFO}) + result = schema.format( + 'levels', {'foo.bar': logging.DEBUG, 'baz': logging.INFO}) self.assertEqual('\n'.join(expected), result)