[SCM] morituri/master: add repr

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:08:52 UTC 2014


The following commit has been merged in the master branch:
commit c592e00425df537750c31d86cc2c852f4a5deb1e
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun May 3 12:57:44 2009 +0000

    add repr

diff --git a/morituri/image/table.py b/morituri/image/table.py
index 7b66d62..1725e3d 100644
--- a/morituri/image/table.py
+++ b/morituri/image/table.py
@@ -51,6 +51,9 @@ class Track:
     end = None
     audio = True
 
+    def __repr__(self):
+        return '<Track %02d>' % self.number
+
     def __init__(self, number, start, end, audio=True):
         self.number = number
         self.start = start

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list