Commit adaf513a authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[py3] file() doesn't exist in python3

parent 377a912f5e4d
......@@ -91,7 +91,7 @@ def daemonize(pidfile=None, uid=None, umask=0o77):
piddir = os.path.dirname(pidfile)
if not os.path.exists(piddir):
f = file(pidfile, "w")
f = open(pidfile, "w")
# set umask if specified
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment