summaryrefslogtreecommitdiff
path: root/piglit-summary-html.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-07-15 21:48:31 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2013-09-11 02:06:14 -0700
commit3c3f0f847d07837d13c038a36aa8f2f761fca9a7 (patch)
treee3e2502c9e302b55fcaab8dd986a73e5b90e8674 /piglit-summary-html.py
parent30de4604005c8e25b941e15e5631ca9274186b30 (diff)
piglit-summary-html.py: Replace .read().split('\n') with .readlines()
This is equivalent but simpler. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'piglit-summary-html.py')
-rwxr-xr-xpiglit-summary-html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index 39ae474b5..6fed689d9 100755
--- a/piglit-summary-html.py
+++ b/piglit-summary-html.py
@@ -39,7 +39,7 @@ def parse_listfile(filename):
element at the end.
"""
with open(filename, 'r') as file:
- return [path.expanduser(i) for i in file.read().rstrip().split('\n')]
+ return [path.expanduser(i.rstrip('\n')) for i in file.readlines()]
def main():