Fix some comments and remove German ones

This commit is contained in:
coderkun 2024-11-03 10:55:52 +01:00
parent bcfd17a8ae
commit 99958eabc9
5 changed files with 4 additions and 14 deletions

View file

@ -542,8 +542,6 @@ class Client(Base):
def _playpause(self):
"""Action: Perform the real play/pause command."""
#status = self._parse_dict(self._call('status'))
#if 'state' in status:
if self._state == 'play':
self._call('pause')
else:
@ -653,7 +651,7 @@ class Client(Base):
return future
def _add_action_future(self, future, method, *args):
"""Add an action to the action list based on a futre."""
"""Add an action to the action list based on a future."""
self._logger.debug("add action future %r (%r)", method.__name__, args)
action = (future, method, args)
self._actions.put(action)
@ -787,7 +785,7 @@ class Client(Base):
# Read actual bytes
self._read_bytes(data_view, binary)
offset += binary
# Read line break to complete previous repsonse
# Read line break to complete previous response
self._read_line()
# Read command completion
end = self._read_line()