pychecker cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user