summaryrefslogtreecommitdiffstats
path: root/Lib/plat-irix6/cddb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-irix6/cddb.py')
-rw-r--r--Lib/plat-irix6/cddb.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/plat-irix6/cddb.py b/Lib/plat-irix6/cddb.py
index 96025e7..e96e99e 100644
--- a/Lib/plat-irix6/cddb.py
+++ b/Lib/plat-irix6/cddb.py
@@ -111,9 +111,7 @@ class Cddb:
print 'syntax error in ' + file
continue
if trackno > ntracks:
- print 'track number ' + `trackno` + \
- ' in file ' + file + \
- ' out of range'
+ print 'track number %r in file %s out of range' % (trackno, file)
continue
if name2 == 'title':
self.track[trackno] = value
@@ -191,7 +189,7 @@ class Cddb:
prevpref = None
for i in range(1, len(self.track)):
if self.trackartist[i]:
- f.write('track'+`i`+'.artist:\t'+self.trackartist[i]+'\n')
+ f.write('track%r.artist:\t%s\n' % (i, self.trackartist[i])
track = self.track[i]
try:
off = track.index(',')
@@ -202,5 +200,5 @@ class Cddb:
track = track[off:]
else:
prevpref = track[:off]
- f.write('track' + `i` + '.title:\t' + track + '\n')
+ f.write('track%r.title:\t%s\n' % (i, track))
f.close()