]> granicus.if.org Git - python/commitdiff
Fix undefined local.
authorGeorg Brandl <georg@python.org>
Mon, 8 Feb 2010 22:37:52 +0000 (22:37 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 8 Feb 2010 22:37:52 +0000 (22:37 +0000)
Lib/plat-irix6/cdplayer.py

index 6529de21d7007deb327648c9fce89b59992111e6..9664b2c233a8829df5e3a60d9564b9dfab48d8bc 100644 (file)
@@ -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)