From 3c3f0f847d07837d13c038a36aa8f2f761fca9a7 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 15 Jul 2013 21:48:31 -0700 Subject: piglit-summary-html.py: Replace .read().split('\n') with .readlines() This is equivalent but simpler. Signed-off-by: Dylan Baker Reviewed-by: Chad Versace --- piglit-summary-html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- cgit v1.2.3