[Pkg-mpd-commits] [python-mpd] 30/91: stub class for MPDProtocol if twisted is not available
Simon McVittie
smcv at debian.org
Sat Feb 24 14:55:30 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 a818676f97b8f2bef1fdafc63801869c52e66053
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date: Sat Sep 10 21:28:51 2016 +0200
stub class for MPDProtocol if twisted is not available
---
mpd/__init__.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mpd/__init__.py b/mpd/__init__.py
index d95cfcc..ed4904f 100644
--- a/mpd/__init__.py
+++ b/mpd/__init__.py
@@ -30,4 +30,6 @@ from mpd.base import VERSION
try:
from mpd.twisted import MPDProtocol
except ImportError:
- pass
+ class MPDProtocol:
+ def __init__():
+ raise "No twisted module found"
--
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