diff options
author | Walter Dörwald <walter@livinglogic.de> | 2004-02-12 17:35:32 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2004-02-12 17:35:32 (GMT) |
commit | 70a6b49821a3226f55e9716f32d802d06640cb89 (patch) | |
tree | 3c8ca10c1fa09e025bd266cf855a00d7d96c55aa /Lib/plat-irix5/cddb.py | |
parent | ecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e (diff) | |
download | cpython-70a6b49821a3226f55e9716f32d802d06640cb89.zip cpython-70a6b49821a3226f55e9716f32d802d06640cb89.tar.gz cpython-70a6b49821a3226f55e9716f32d802d06640cb89.tar.bz2 |
Replace backticks with repr() or "%r"
From SF patch #852334.
Diffstat (limited to 'Lib/plat-irix5/cddb.py')
-rwxr-xr-x | Lib/plat-irix5/cddb.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/plat-irix5/cddb.py b/Lib/plat-irix5/cddb.py index e43aea6..c4a95cd 100755 --- a/Lib/plat-irix5/cddb.py +++ b/Lib/plat-irix5/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 %r 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() |