Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)

This commit is contained in:
Raymond Hettinger 2002-06-30 03:39:14 +00:00
parent 78e057a32a
commit 46ac8eb3c8
11 changed files with 19 additions and 42 deletions

View file

@ -160,8 +160,7 @@ class MultiFile:
self.level = max(0, self.level - 1)
del self.stack[0]
if self.seekable:
self.start = self.posstack[0]
del self.posstack[0]
self.start = self.posstack.pop(0)
if self.level > 0:
self.lastpos = abslastpos - self.start