Fix undefined local.

This commit is contained in:
Georg Brandl 2010-02-08 22:37:52 +00:00
parent 616e8fc5ad
commit e64c442ff7
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class Cdplayer:
new.write(self.id + '.title:\t' + self.title + '\n') new.write(self.id + '.title:\t' + self.title + '\n')
new.write(self.id + '.artist:\t' + self.artist + '\n') new.write(self.id + '.artist:\t' + self.artist + '\n')
for i in range(1, len(self.track)): 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() old.close()
new.close() new.close()
posix.rename(filename + '.new', filename) posix.rename(filename + '.new', filename)