Author: duncan
Date: Mon Sep 25 15:35:59 2006
New Revision: 1900

Modified:
   branches/mmpython-0-4/mmpython/disc/lsdvd.py

Log:
Added __repr__ to DVDSubtitle for backwards compatibility

Modified: branches/mmpython-0-4/mmpython/disc/lsdvd.py
==============================================================================
--- branches/mmpython-0-4/mmpython/disc/lsdvd.py        (original)
+++ branches/mmpython-0-4/mmpython/disc/lsdvd.py        Mon Sep 25 15:35:59 2006
@@ -118,6 +118,11 @@
         except UnicodeError:
             self.languagedesc = ''
 
+    def __repr__(self):
+        if self.languagedesc != '':
+            return self.languagedesc
+        return self.language
+
 
 class DVDVideo(mediainfo.VideoInfo):
     def __init__(self, data):

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to