Replace backticks with repr() or "%r"
From SF patch #852334.
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 @@
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 @@
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 @@
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()