[Pkg-mpd-commits] [python-mpd] 10/91: reformating + whitespace
Simon McVittie
smcv at debian.org
Sat Feb 24 14:55:27 UTC 2018
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository python-mpd.
commit c6266eb10dd1dfcc28ba1ba3827d369e3ccc9d4b
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date: Sat Sep 10 18:09:09 2016 +0200
reformating + whitespace
---
mpd/base.py | 14 +++++++-------
mpd/twisted.py | 6 +++---
setup.py | 2 +-
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/mpd/base.py b/mpd/base.py
index d8219d3..dd2d142 100644
--- a/mpd/base.py
+++ b/mpd/base.py
@@ -289,12 +289,12 @@ class MPDClientBase(object):
@mpd_commands(
'add', 'addtagid', 'clear', 'clearerror', 'cleartagid', 'consume',
'crossfade', 'delete', 'deleteid', 'disableoutput', 'enableoutput',
- 'findadd', 'load', 'mixrampdb', 'mixrampdelay', 'mount', 'move',
- 'moveid', 'next', 'password', 'pause', 'ping', 'play', 'playid',
+ 'findadd', 'load', 'mixrampdb', 'mixrampdelay', 'mount', 'move',
+ 'moveid', 'next', 'password', 'pause', 'ping', 'play', 'playid',
'playlistadd', 'playlistclear', 'playlistdelete', 'playlistmove',
'previous', 'prio', 'prioid', 'random', 'rangeid', 'rename', 'repeat',
'replay_gain_mode', 'rm', 'save', 'searchadd', 'searchaddpl', 'seek',
- 'seekcur', 'seekid', 'sendmessage', 'setvol', 'shuffle', 'single',
+ 'seekcur', 'seekid', 'sendmessage', 'setvol', 'shuffle', 'single',
'sticker delete', 'sticker set', 'stop', 'subscribe', 'swap', 'swapid',
'toggleoutput', 'umount', 'unsubscribe')
def _parse_nothing(self, lines):
@@ -627,11 +627,11 @@ class MPDClient(MPDClientBase):
def disconnect(self):
logger.info("Calling MPD disconnect()")
- if (self._rfile is not None
- and not isinstance(self._rfile, _NotConnected)):
+ if (self._rfile is not None and
+ not isinstance(self._rfile, _NotConnected)):
self._rfile.close()
- if (self._wfile is not None
- and not isinstance(self._wfile, _NotConnected)):
+ if (self._wfile is not None and
+ not isinstance(self._wfile, _NotConnected)):
self._wfile.close()
if self._sock is not None:
self._sock.close()
diff --git a/mpd/twisted.py b/mpd/twisted.py
index a1d688f..b7ef719 100644
--- a/mpd/twisted.py
+++ b/mpd/twisted.py
@@ -69,7 +69,7 @@ class MPDProtocol(basic.LineReceiver, MPDClientBase):
@classmethod
def add_command(cls, name, callback):
- # ignore commands which are implemented on class directly
+ # ignore commands which are implemented on class directly
if getattr(cls, name, None) is not None:
return
# create command and hook it on class
@@ -98,7 +98,7 @@ class MPDProtocol(basic.LineReceiver, MPDClientBase):
del self._command_list_results[0]
else:
state_list.pop(0).errback(CommandError(error))
- # XXX: reset received lines here?
+ # XXX: reset received lines here?
self._continue_idle()
elif line == SUCCESS or (command_list and line == NEXT):
state_list.pop(0).callback(self._rcvd_lines[:])
@@ -135,7 +135,7 @@ class MPDProtocol(basic.LineReceiver, MPDClientBase):
def _write_command(self, command, args=[]):
parts = [command]
- parts += ['"{}"'.format(escape(arg.encode('utf-8')) \
+ parts += ['"{}"'.format(escape(arg.encode('utf-8'))
if isinstance(arg, unicode) else str(arg)) for arg in args]
cmd = " ".join(parts)
self.sendLine(cmd)
diff --git a/setup.py b/setup.py
index 9c75b25..d4d71e8 100644
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ class Tox(TestCommand):
self.test_suite = True
def run_tests(self):
- #import here, cause outside the eggs aren't loaded
+ # import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git
More information about the Pkg-mpd-commits
mailing list