aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2018-05-14 17:34:29 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2018-05-14 17:34:29 +0200
commit2ded0151fdce1ac8a517e408d245e2c904d32231 (patch)
treecd11ad7957dca1e83f3e3f1a30ff08856dce8240
parentUse enumerate to reduce loop management logic (diff)
downloadelogv-2ded0151fdce1ac8a517e408d245e2c904d32231.tar.gz
elogv-2ded0151fdce1ac8a517e408d245e2c904d32231.tar.bz2
elogv-2ded0151fdce1ac8a517e408d245e2c904d32231.zip
Drop unused intermediate variable
-rwxr-xr-xelogv3
1 files changed, 1 insertions, 2 deletions
diff --git a/elogv b/elogv
index ec38d7b..e12cced 100755
--- a/elogv
+++ b/elogv
@@ -547,8 +547,7 @@ class ElogViewer:
"""
result = []
self.logf.seek(0)
- logf = self.logf.readlines()
- for line in logf:
+ for line in self.logf.readlines():
if not line.strip():
# textwrap eats newlines
result.append("\n")