[Pkg-mpd-commits] [python-mpd] 39/91: Call the correct function in the future compatible example

Simon McVittie smcv at debian.org
Sat Feb 24 14:55:32 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 f483eaba1abd6f1e63cfb9a5e11500fdde1d891f
Author: Wieland Hoffmann <themineo at gmail.com>
Date:   Fri Nov 4 19:43:26 2016 +0100

    Call the correct function in the future compatible example
    
    The function that was added is called `fetch_cover`, but the command
    name is `get_cover`.
---
 doc/topics/advanced.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/topics/advanced.rst b/doc/topics/advanced.rst
index 4b85fb7..8d408f1 100644
--- a/doc/topics/advanced.rst
+++ b/doc/topics/advanced.rst
@@ -12,7 +12,7 @@ New commands or special handling of commands can be easily implemented.  Use
 
     client.add_command("get_cover", fetch_cover)
     # you can then use:
-    client.fetch_cover()
+    client.get_cover()
 
     # remove the command, because it doesn't exist already.
     client.remove_command("get_cover")

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