summaryrefslogtreecommitdiff
path: root/piglit-summary.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-07-15 21:53:13 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2013-09-11 02:06:14 -0700
commit4f5548372c423e2d7a37073ee843c3b9fad81e2c (patch)
treed1d1e5794ca97ca761e5b08da86080f99631513a /piglit-summary.py
parent3c3f0f847d07837d13c038a36aa8f2f761fca9a7 (diff)
piglit-summary.py: rewrite parse_listfile
This makes the parse_listfile in piglit-summary.py the same as the one in piglit-summary-html.py. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'piglit-summary.py')
-rwxr-xr-xpiglit-summary.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/piglit-summary.py b/piglit-summary.py
index 79d155408..24bb30d2f 100755
--- a/piglit-summary.py
+++ b/piglit-summary.py
@@ -41,8 +41,8 @@ def parse_listfile(filename):
"""
Read a list of newline seperated file names and return them as a list
"""
- return open(filename, "r").read().rstrip().split('\n')
-
+ with open(filename, 'r') as file:
+ return [path.expanduser(i.rstrip('\n')) for i in file.readlines()]
def main():
parser = argparse.ArgumentParser()