diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2018-05-14 17:34:29 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2018-05-14 17:34:29 +0200 |
commit | 2ded0151fdce1ac8a517e408d245e2c904d32231 (patch) | |
tree | cd11ad7957dca1e83f3e3f1a30ff08856dce8240 | |
parent | Use enumerate to reduce loop management logic (diff) | |
download | elogv-2ded0151fdce1ac8a517e408d245e2c904d32231.tar.gz elogv-2ded0151fdce1ac8a517e408d245e2c904d32231.tar.bz2 elogv-2ded0151fdce1ac8a517e408d245e2c904d32231.zip |
Drop unused intermediate variable
-rwxr-xr-x | elogv | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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") |