diff options
Diffstat (limited to 'Lib/plat-irix5')
-rwxr-xr-x | Lib/plat-irix5/cddb.py | 8 | ||||
-rwxr-xr-x | Lib/plat-irix5/cdplayer.py | 3 | ||||
-rwxr-xr-x | Lib/plat-irix5/flp.py | 4 | ||||
-rwxr-xr-x | Lib/plat-irix5/panel.py | 2 | ||||
-rwxr-xr-x | Lib/plat-irix5/readcd.py | 4 | ||||
-rwxr-xr-x | Lib/plat-irix5/torgb.py | 5 |
6 files changed, 11 insertions, 15 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() diff --git a/Lib/plat-irix5/cdplayer.py b/Lib/plat-irix5/cdplayer.py index 278da03..3cbd0d8 100755 --- a/Lib/plat-irix5/cdplayer.py +++ b/Lib/plat-irix5/cdplayer.py @@ -82,8 +82,7 @@ class Cdplayer: new.write(self.id + '.title:\t' + self.title + '\n') new.write(self.id + '.artist:\t' + self.artist + '\n') for i in range(1, len(self.track)): - new.write(self.id + '.track.' + `i` + ':\t' + \ - self.track[i] + '\n') + new.write('%s.track.%r:\t%s\n' % (self.id, i, self.track[i]) old.close() new.close() posix.rename(filename + '.new', filename) diff --git a/Lib/plat-irix5/flp.py b/Lib/plat-irix5/flp.py index 7d5814a..b22bc1a 100755 --- a/Lib/plat-irix5/flp.py +++ b/Lib/plat-irix5/flp.py @@ -146,7 +146,7 @@ def freeze(filename): forms = parse_forms(filename) altforms = _pack_cache(forms) print 'import flp' - print 'flp._internal_cache[', `filename`, '] =', altforms + print 'flp._internal_cache[', repr(filename), '] =', altforms # # Internal: create the data structure to be placed in the cache @@ -417,7 +417,7 @@ def _select_crfunc(fm, cl): elif cl == FL.TEXT: return fm.add_text elif cl == FL.TIMER: return fm.add_timer else: - raise error, 'Unknown object type: ' + `cl` + raise error, 'Unknown object type: %r' % (cl,) def test(): diff --git a/Lib/plat-irix5/panel.py b/Lib/plat-irix5/panel.py index f8388c6..3aa7448 100755 --- a/Lib/plat-irix5/panel.py +++ b/Lib/plat-irix5/panel.py @@ -127,7 +127,7 @@ def assign_members(target, attrlist, exclist, prefix): ok = 0 if ok: lhs = 'target.' + prefix + name - stmt = lhs + '=' + `value` + stmt = lhs + '=' + repr(value) if debug: print 'exec', stmt try: exec stmt + '\n' diff --git a/Lib/plat-irix5/readcd.py b/Lib/plat-irix5/readcd.py index e000d35..f278ba4 100755 --- a/Lib/plat-irix5/readcd.py +++ b/Lib/plat-irix5/readcd.py @@ -9,7 +9,7 @@ class _Stop(Exception): def _doatime(self, cb_type, data): if ((data[0] * 60) + data[1]) * 75 + data[2] > self.end: -## print 'done with list entry',`self.listindex` +## print 'done with list entry', repr(self.listindex) raise _Stop func, arg = self.callbacks[cb_type] if func: @@ -17,7 +17,7 @@ def _doatime(self, cb_type, data): def _dopnum(self, cb_type, data): if data > self.end: -## print 'done with list entry',`self.listindex` +## print 'done with list entry', repr(self.listindex) raise _Stop func, arg = self.callbacks[cb_type] if func: diff --git a/Lib/plat-irix5/torgb.py b/Lib/plat-irix5/torgb.py index 6208289..fa5effb 100755 --- a/Lib/plat-irix5/torgb.py +++ b/Lib/plat-irix5/torgb.py @@ -85,13 +85,12 @@ def _torgb(filename, temps): type(msg[0]) == type(0) and type(msg[1]) == type(''): msg = msg[1] if type(msg) is not type(''): - msg = `msg` + msg = repr(msg) raise error, filename + ': ' + msg if ftype == 'rgb': return fname if ftype is None or not table.has_key(ftype): - raise error, \ - filename + ': unsupported image file type ' + `ftype` + raise error, '%s: unsupported image file type %r' % (filename, ftype)) (fd, temp) = tempfile.mkstemp() os.close(fd) sts = table[ftype].copy(fname, temp) |