From 9f9cf95692d9399d1528635a70ce873cd0518449 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sun, 14 Apr 2013 14:32:20 -0400 Subject: util.py: replace file() with open() open() is the standard way to open a file in python. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- test/pacman/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pacman/util.py b/test/pacman/util.py index be99cd57..65540ed3 100644 --- a/test/pacman/util.py +++ b/test/pacman/util.py @@ -100,7 +100,7 @@ def mkfile(base, name, data=""): def writedata(filename, data): if isinstance(data, list): data = "\n".join(data) - fd = file(filename, "w") + fd = open(filename, "w") if data: fd.write(data) if data[-1] != "\n": -- cgit v1.2.3-70-g09d2