compat: use open() instead of file() everywhere stable
authorAlejandro Santos <alejolp@alejolp.com>
Sun, 05 Jul 2009 11:01:30 +0200
branchstable
changeset 1124 6a5b8503058d
parent 1123 17bcbb020dda
child 1125 20a680e7f09f
compat: use open() instead of file() everywhere [ original upstream message only for killdaemons here ]
tests/killdaemons.py
--- a/tests/killdaemons.py	Fri Nov 07 16:28:53 2008 -0600
+++ b/tests/killdaemons.py	Sun Jul 05 11:01:30 2009 +0200
@@ -4,7 +4,7 @@
 
 # Kill off any leftover daemon processes
 try:
-    fp = file(os.environ['DAEMON_PIDS'])
+    fp = open(os.environ['DAEMON_PIDS'])
     for line in fp:
         try:
             pid = int(line)