[Pkg-mpd-commits] [python-mpd] 235/262: python-mpd: add_command used global variable instead of locale one

Simon McVittie smcv at debian.org
Sun May 22 18:16:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch upstream
in repository python-mpd.

commit 9c36361675f5c6d9d54d3d9cd9bda41a4e0fcff9
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date:   Sat Jun 7 22:44:09 2014 +0200

    python-mpd: add_command used global variable instead of locale one
---
 mpd.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mpd.py b/mpd.py
index 94462af..868ff7b 100644
--- a/mpd.py
+++ b/mpd.py
@@ -549,9 +549,9 @@ class MPDClient(object):
 
     @classmethod
     def add_command(cls, name, callback):
-        method = newFunction(cls._execute, key, callback)
-        send_method = newFunction(cls._send, key, callback)
-        fetch_method = newFunction(cls._fetch, key, callback)
+        method = newFunction(cls._execute, name, callback)
+        send_method = newFunction(cls._send, name, callback)
+        fetch_method = newFunction(cls._fetch, name, callback)
 
         # create new mpd commands as function in three flavors:
         # normal, with "send_"-prefix and with "fetch_"-prefix

-- 
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