Skip to content

Commit d40c0a6

Browse files
committed
apply automatic ruff fixes
1 parent a3fbc0b commit d40c0a6

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys, os
14+
import sys
15+
import os
1516

1617
# If extensions (or modules to document with autodoc) are in another directory,
1718
# add these directories to sys.path here. If the directory is relative to the

examples/logger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import logging, mpd
1+
import logging
2+
import mpd
23

34
logging.basicConfig(level=logging.DEBUG)
45
client = mpd.MPDClient()

mpd/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,9 @@ def command_list_end(self) -> Any:
894894
def add_command(cls, name: str, callback: Any) -> None:
895895
wrap_result = callback in cls._wrap_iterator_parsers
896896
if callback.mpd_commands_binary:
897-
method = lambda self, *args: callback(
898-
self, cls._execute_binary(self, name, args)
899-
)
897+
898+
def method(self, *args):
899+
return callback(self, cls._execute_binary(self, name, args))
900900
else:
901901
method = _create_command(cls._execute, name, callback, wrap_result)
902902
# create new mpd commands as function:

0 commit comments

Comments
 (0)