X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=musicpd.py;fp=musicpd.py;h=50c35dd33bdd80342f38b230f674e399a5445f13;hp=d2e6ebf7fcad2e248af5d117f9b63333e53115e2;hb=7de98640722cf64c68d89d3e82067f8f9eb75a49;hpb=4b6a406b43f63975c48fce6e1a27ca9a136b95a8 diff --git a/musicpd.py b/musicpd.py index d2e6ebf..50c35dd 100644 --- a/musicpd.py +++ b/musicpd.py @@ -152,6 +152,10 @@ class MPDClient: #: Current connection timeout value, defaults to #: :py:obj:`CONNECTION_TIMEOUT` or env. var. ``MPD_TIMEOUT`` if provided self.mpd_timeout = None + self.mpd_version = '' + """Protocol version as exposed by the server as a :py:obj:`str` + + .. note:: This is the version of the protocol spoken, not the real version of the daemon.""" self._reset() self._commands = { # Status Commands @@ -585,7 +589,7 @@ class MPDClient: self.mpd_version = line[len(HELLO_PREFIX):].strip() def _reset(self): - self.mpd_version = None + self.mpd_version = '' self._iterating = False self._pending = [] self._command_list = None