diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2013-07-15 21:48:31 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2013-09-11 02:06:14 -0700 |
commit | 3c3f0f847d07837d13c038a36aa8f2f761fca9a7 (patch) | |
tree | e3e2502c9e302b55fcaab8dd986a73e5b90e8674 | |
parent | 30de4604005c8e25b941e15e5631ca9274186b30 (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>
-rwxr-xr-x | piglit-summary-html.py | 2 |
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(): |