[Pkg-mpd-commits] [python-mpd] 60/91: asyncio: Document version constraints
Simon McVittie
smcv at debian.org
Sat Feb 24 14:55:36 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 1b90ef121a48011af6d6051b2ad866cfb67c3b8f
Author: chrysn <chrysn at fsfe.org>
Date: Fri Apr 21 10:59:10 2017 +0200
asyncio: Document version constraints
Showing the version limits for the example and the module. There are no
explicit sys_version checks in place to give a better error message
because a Python < 3.5 would fail with an ImportError at the mpd.asyncio
module or the example code before it could execute that check.
---
examples/summary.txt | 3 +++
mpd/asyncio.py | 3 +++
2 files changed, 6 insertions(+)
diff --git a/examples/summary.txt b/examples/summary.txt
index 4069017..dea14c3 100644
--- a/examples/summary.txt
+++ b/examples/summary.txt
@@ -22,3 +22,6 @@ ExampleStats Get general information of your MPD server 2009-09-12
ExampleStickers A command-line client for manipulating and querying stickers
2010-12-18
Examples Some example scripts to show how to play with python-mpd 2010-12-18
+
+The asyncio_example.py shows how MPD can be used with the asyncio idioms; it
+requires at least Python 3.5 to run.
diff --git a/mpd/asyncio.py b/mpd/asyncio.py
index 7d89c28..173c523 100644
--- a/mpd/asyncio.py
+++ b/mpd/asyncio.py
@@ -14,6 +14,9 @@ want to send commands after an idle returned (eg. current song notification
pushers).
Command lists are currently not supported.
+
+
+This module requires Python 3.5.2 or later to run.
"""
import asyncio
--
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