[Pkg-mpd-commits] [python-mpd] 256/262: remove deprecated volume command from doc

Simon McVittie smcv at debian.org
Sun May 22 18:16:55 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 94d002871ba5edba6bfa1a7defc85f1435047c4e
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date:   Fri Jan 29 21:45:20 2016 +0100

    remove deprecated volume command from doc
    
    fixes #68
---
 doc/generate_command_reference.py | 4 ++++
 doc/topics/commands.rst           | 5 -----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/doc/generate_command_reference.py b/doc/generate_command_reference.py
index da902de..a5b67e8 100644
--- a/doc/generate_command_reference.py
+++ b/doc/generate_command_reference.py
@@ -16,6 +16,8 @@ if len(sys.argv) > 1:
 DIR = os.path.dirname(os.path.realpath(__file__))
 header_file = os.path.join(DIR, "commands_header.txt")
 
+DEPRECATED_COMMANDS = ["volume"]
+
 with open(header_file, 'r') as f:
     print(f.read())
 
@@ -36,6 +38,8 @@ for section in chapter.xpath("section"):
 
     for entry in section.xpath("variablelist/varlistentry"):
         cmd = entry.xpath("term/cmdsynopsis/command")[0].text
+        if cmd in DEPRECATED_COMMANDS:
+            continue
         subcommand = ""
         args = ""
         begin_optional = False
diff --git a/doc/topics/commands.rst b/doc/topics/commands.rst
index b5b9f5e..cb100c4 100644
--- a/doc/topics/commands.rst
+++ b/doc/topics/commands.rst
@@ -122,11 +122,6 @@ Playback options
               returned.
 
 
-.. function:: MPDClient.volume(change)
-
-              Changes volume by amount CHANGE .
-
-
 Controlling playback
 --------------------
 

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