summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-08 22:37:52 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-08 22:37:52 (GMT)
commite64c442ff707c4278363247d6a51fb317a13f9e0 (patch)
tree2989c1562cb5e5782c33b156ceea2488ac8f7f93 /Lib
parent616e8fc5ad8dbe268003cd6b626b8ece0a882039 (diff)
downloadcpython-e64c442ff707c4278363247d6a51fb317a13f9e0.zip
cpython-e64c442ff707c4278363247d6a51fb317a13f9e0.tar.gz
cpython-e64c442ff707c4278363247d6a51fb317a13f9e0.tar.bz2
Fix undefined local.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/plat-irix6/cdplayer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-irix6/cdplayer.py b/Lib/plat-irix6/cdplayer.py
index 6529de2..9664b2c 100644
--- a/Lib/plat-irix6/cdplayer.py
+++ b/Lib/plat-irix6/cdplayer.py
@@ -85,7 +85,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('%s.track.%r:\t%s\n' % (self.id, i, track))
+ new.write('%s.track.%r:\t%s\n' % (self.id, i, self.track[i]))
old.close()
new.close()
posix.rename(filename + '.new', filename)