[SCM] morituri/master: add a repr to show GError
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:26 UTC 2014
The following commit has been merged in the master branch:
commit 9e70e245167f1d1c7097b5ec2b8e4479ccf9c6cb
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Mon May 23 18:24:08 2011 +0000
add a repr to show GError
diff --git a/morituri/common/gstreamer.py b/morituri/common/gstreamer.py
index 250206d..04ec955 100644
--- a/morituri/common/gstreamer.py
+++ b/morituri/common/gstreamer.py
@@ -28,6 +28,10 @@ class GstException(Exception):
self.gerror = gerror
self.debug = debug
+ def __repr__(self):
+ return '<GstException: GError %r, debug %r>' % (
+ self.gerror.message, self.debug)
+
class GstPipelineTask(task.Task):
"""
I am a base class for tasks that use a GStreamer pipeline.
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list