[Pkg-mpd-commits] [python-mpd] 214/262: import mpd in getting started example

Simon McVittie smcv at debian.org
Sun May 22 18:16:49 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 2555fad005ae54dd16c78ce393e28d2cd94b3f93
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date:   Tue Jun 25 08:59:26 2013 +0200

    import mpd in getting started example
---
 doc/topics/getting-started.rst | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/topics/getting-started.rst b/doc/topics/getting-started.rst
index 36344cc..5805fea 100644
--- a/doc/topics/getting-started.rst
+++ b/doc/topics/getting-started.rst
@@ -3,7 +3,8 @@ Using the client library
 
 The client library can be used as follows::
 
-    >>> client = mpd.MPDClient()           # create client object
+    >>> from mpd import MPDClient
+    >>> client = MPDClient()               # create client object
     >>> client.timeout = 10                # network timeout in seconds (floats allowed), default: None
     >>> client.idletimeout = None          # timeout for fetching the result of the idle command is handled seperately, default: None
     >>> client.connect("localhost", 6600)  # connect to localhost:6600

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