[Pkg-mpd-commits] [python-mpd] 38/91: Remove self. in the future compatible docs

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 cd5c072ccaee0d9732f3e194cd60ae2f952e5459
Author: Wieland Hoffmann <themineo at gmail.com>
Date:   Fri Nov 4 19:42:38 2016 +0100

    Remove self. in the future compatible docs
    
    This works just as well and self. doesn't add any value.
---
 doc/topics/advanced.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/topics/advanced.rst b/doc/topics/advanced.rst
index a02c831..4b85fb7 100644
--- a/doc/topics/advanced.rst
+++ b/doc/topics/advanced.rst
@@ -10,12 +10,12 @@ New commands or special handling of commands can be easily implemented.  Use
         # this command may come in the future.
         pass
 
-    self.client.add_command("get_cover", fetch_cover)
+    client.add_command("get_cover", fetch_cover)
     # you can then use:
-    self.client.fetch_cover()
+    client.fetch_cover()
 
     # remove the command, because it doesn't exist already.
-    self.client.remove_command("get_cover")
+    client.remove_command("get_cover")
 
 
 Thread-Safety

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