aboutsummaryrefslogtreecommitdiff
path: root/elogv
diff options
context:
space:
mode:
Diffstat (limited to 'elogv')
-rwxr-xr-xelogv3
1 files changed, 1 insertions, 2 deletions
diff --git a/elogv b/elogv
index 32cb1db..ec38d7b 100755
--- a/elogv
+++ b/elogv
@@ -504,8 +504,7 @@ class ElogViewer:
self.file_pad = curses.newpad(len(self.packages),self.width)
self.file_pad.erase()
- for i in range(len(self.packages)):
- pkg = self.packages[i]
+ for i, pkg in enumerate(self.packages):
if i == self.usel:
cp = selected
# Maybe that the logf pointed by self.usel changed, (example