summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-04-14 14:32:20 -0400
committerAllan McRae <allan@archlinux.org>2013-04-15 11:25:33 +1000
commit9f9cf95692d9399d1528635a70ce873cd0518449 (patch)
tree5551990885222d5cf6b18833e7e0e6354b9c9667 /test
parente19091b2bfe53cc1c37f2fc4999c359719637d7c (diff)
downloadpacman-9f9cf95692d9399d1528635a70ce873cd0518449.tar.xz
util.py: replace file() with open()
open() is the standard way to open a file in python. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/util.py2
1 files changed, 1 insertions, 1 deletions
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":