[Pkg-mpd-commits] [python-mpd] 12/91: examples/twisted.py: rename to avoid import error
Simon McVittie
smcv at debian.org
Sat Feb 24 14:55:27 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 ef425183ae819f535531621e5dd4fc0573782ef6
Author: Jörg Thalheim <joerg at higgsboson.tk>
Date: Sat Sep 10 21:27:52 2016 +0200
examples/twisted.py: rename to avoid import error
also print error message on connection failure
---
examples/{twisted.py => twisted_example.py} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/twisted.py b/examples/twisted_example.py
similarity index 91%
rename from examples/twisted.py
rename to examples/twisted_example.py
index 06df657..761d529 100644
--- a/examples/twisted.py
+++ b/examples/twisted_example.py
@@ -39,11 +39,11 @@ class MPDClientFactory(protocol.ClientFactory):
return protocol
def clientConnectionFailed(self, connector, reason):
- print("Connection failed - goodbye!")
+ print("Connection failed - goodbye!: %s" % reason)
reactor.stop()
-
+
def clientConnectionLost(self, connector, reason):
- print("Connection lost - goodbye!")
+ print("Connection lost - goodbye!: %s" % reason)
reactor.stop()
--
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