Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-common
Commits
0f87cc4c3232
Commit
adaf513a
authored
Mar 18, 2020
by
Laurent Peuch
Browse files
[py3] file() doesn't exist in python3
parent
377a912f5e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
logilab/common/daemon.py
View file @
0f87cc4c
...
...
@@ -91,7 +91,7 @@ def daemonize(pidfile=None, uid=None, umask=0o77):
piddir
=
os
.
path
.
dirname
(
pidfile
)
if
not
os
.
path
.
exists
(
piddir
):
os
.
makedirs
(
piddir
)
f
=
file
(
pidfile
,
"w"
)
f
=
open
(
pidfile
,
"w"
)
f
.
write
(
str
(
os
.
getpid
()))
f
.
close
()
# set umask if specified
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment