]> kaliko git repositories - python-musicpd.git/blobdiff - mpd.py
updating copyright years
[python-musicpd.git] / mpd.py
diff --git a/mpd.py b/mpd.py
index cb16701872c5b700bc44620eb415780e7715e64c..315c26210a6877bd31fe8af25055a0342f093651 100644 (file)
--- a/mpd.py
+++ b/mpd.py
@@ -1,5 +1,5 @@
 # Python MPD client library
-# Copyright (C) 2008  J. Alexander Treuman <jat@spatialrift.net>
+# Copyright (C) 2008-2010  J. Alexander Treuman <jat@spatialrift.net>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -389,6 +389,11 @@ class MPDClient(object):
         self._sock.close()
         self._reset()
 
+    def fileno(self):
+        if not self._sock:
+            raise ConnectionError("Not connected")
+        return self._sock.fileno()
+
     def command_list_ok_begin(self):
         if self._command_list is not None:
             raise CommandListError("Already in command list")