[SCM] morituri/master: use constants
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:01 UTC 2014
The following commit has been merged in the master branch:
commit bedd5d1fc1f434b57d23315ad2128d4ed63ac5c9
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Fri May 22 20:08:36 2009 +0000
use constants
diff --git a/morituri/program/cdparanoia.py b/morituri/program/cdparanoia.py
index b05efbf..234f0bc 100644
--- a/morituri/program/cdparanoia.py
+++ b/morituri/program/cdparanoia.py
@@ -67,11 +67,12 @@ class ProgressParser(object):
function = m.group('function')
offset = int(m.group('offset'))
if function == 'read':
- if offset % 1176 != 0:
- print 'THOMAS: not a multiple of 2532', offset
+ if offset % common.WORDS_PER_FRAME != 0:
+ print 'THOMAS: not a multiple of %d: %d' % (
+ common.WORDS_PER_FRAME, offset)
print line
else:
- self.read = offset / 1176
+ self.read = offset / common.WORDS_PER_FRAME
# FIXME: handle errors
class ReadTrackTask(task.Task):
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list