From 53e8d9275c5b714be25214eca72ff5cfd5d40ea2 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 24 Jun 2009 18:39:07 +0000 Subject: [PATCH] pychecker fix --- morituri/image/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morituri/image/image.py b/morituri/image/image.py index a22f51c..c4fc48b 100644 --- a/morituri/image/image.py +++ b/morituri/image/image.py @@ -150,11 +150,11 @@ class AudioLengthTask(task.Task): assert sink, 'Error constructing pipeline' try: - length, format = sink.query_duration(gst.FORMAT_DEFAULT) + length, qformat = sink.query_duration(gst.FORMAT_DEFAULT) except gst.QueryError: print 'failed to query %s' % self._path # wavparse 0.10.14 returns in bytes - if format == gst.FORMAT_BYTES: + if qformat == gst.FORMAT_BYTES: self.debug('query returned in BYTES format') length /= 4 self.debug('total length of %s in samples: %d', self._path, length)