pychecker cleanup

This commit is contained in:
Thomas Vander Stichele
2009-06-07 13:46:26 +00:00
parent 662c14cf6f
commit d75066d1bb
6 changed files with 3 additions and 9 deletions

View File

@@ -20,10 +20,7 @@
# You should have received a copy of the GNU General Public License
# along with morituri. If not, see <http://www.gnu.org/licenses/>.
import os
import math
import struct
import zlib
import gst
@@ -140,7 +137,6 @@ class EncodeTask(task.Task):
self.debug('paused pipeline')
# get length
decoder = self._pipeline.get_by_name('decoder')
self.debug('query duration')
length, format = muxer.query_duration(gst.FORMAT_DEFAULT)
# wavparse 0.10.14 returns in bytes

View File

@@ -151,7 +151,7 @@ class AudioLengthTask(task.Task):
try:
length, format = sink.query_duration(gst.FORMAT_DEFAULT)
except gst.QueryError, e:
except gst.QueryError:
print 'failed to query %s' % self._path
# wavparse 0.10.14 returns in bytes
if format == gst.FORMAT_BYTES:

View File

@@ -144,7 +144,7 @@ class Table(object, log.Loggable):
catalog = None # catalog number; FIXME: is this UPC ?
cdtext = None
classVersion = 1
classVersion = 2
def __init__(self, tracks=None):
if not tracks:

View File

@@ -96,7 +96,6 @@ class ProgressParser(object):
if wordOffset % common.WORDS_PER_FRAME != 0:
print 'THOMAS: not a multiple of %d: %d' % (
common.WORDS_PER_FRAME, wordOffset)
print line
return
frameOffset = wordOffset / common.WORDS_PER_FRAME

View File

@@ -20,7 +20,6 @@
# You should have received a copy of the GNU General Public License
# along with morituri. If not, see <http://www.gnu.org/licenses/>.
import os
import time
from morituri.common import common

View File

@@ -31,7 +31,7 @@ class List(logcommand.LogCommand):
try:
import pycdio
import cdio
except ImportError, e:
except ImportError:
self.info('pycdio not installed, cannot list drives')
found = False
for c in ['/dev/cdrom', '/dev/cdrecorder']: