[vlc-commits] python-vlc: fix struct string representation

Olivier Aubert git at videolan.org
Tue Mar 29 12:45:14 CEST 2011


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Tue Mar 29 11:33:33 2011 +0200| [e6410871434744dd1a9705ca4cf31df46f658b40] | committer: Olivier Aubert

python-vlc: fix struct string representation

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=e6410871434744dd1a9705ca4cf31df46f658b40
---

 header.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/header.py b/header.py
index 8cee93e..33549c9 100755
--- a/header.py
+++ b/header.py
@@ -236,7 +236,7 @@ class MediaStats(ctypes.Structure):
     ]
 
     def __str__(self):
-        l = [' %s:\t%s' % (n, getattr(self, n)) for n in self._fields_]
+        l = [' %s:\t%s' % (n, getattr(self, n)) for n, t in self._fields_]
         return '\n'.join([self.__class__.__name__] + l)
 
     def __repr__(self):
@@ -254,7 +254,7 @@ class MediaTrackInfo(ctypes.Structure):
     ]
 
     def __str__(self):
-        l = [" %s:\t%s" % (n, getattr(self, n)) for n in self._fields_]
+        l = [" %s:\t%s" % (n, getattr(self, n)) for n, t in self._fields_]
         return "\n".join([self.__class__.__name__] + l)
 
     def __repr__(self):



More information about the vlc-commits mailing list