[Pkg-mpd-commits] [python-mpd] 98/262: README.txt use real working example in basic usage

Simon McVittie smcv at debian.org
Sun May 22 18:16:30 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 9d84652d042b7ff39a7ba75c2c0121523f3c88cd
Author: Jörg Thalheim <jthalheim at gmail.com>
Date:   Thu Feb 16 16:17:14 2012 +0100

    README.txt use real working example in basic usage
---
 README.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.txt b/README.txt
index f10db8a..52a093d 100644
--- a/README.txt
+++ b/README.txt
@@ -37,8 +37,8 @@ The client library can be used as follows:
 ------------------------------------------------------------------------------
 client = mpd.MPDClient()           # create client object
 client.connect("localhost", 6600)  # connect to localhost:6600
-print client.mpd_version           # print the mpd version
-print client.cmd("one", 2)         # print result of the command "cmd one 2"
+print(client.mpd_version)          # print the mpd version
+print(client.find("any", "house")) # print result of the command "find any house"
 client.close()                     # send the close command
 client.disconnect()                # disconnect from the server
 ------------------------------------------------------------------------------

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