Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: third_party/logilab/common/daemon.py

Issue 719313003: Revert "pylint: upgrade to 1.3.1" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/logilab/common/corbautils.py ('k') | third_party/logilab/common/date.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/logilab/common/daemon.py
diff --git a/third_party/logilab/common/daemon.py b/third_party/logilab/common/daemon.py
index 6324b20167ee729900199ea3161dd6d0d2ef12e6..c8342a85306841e181066991eb0ff4bfca4642d0 100644
--- a/third_party/logilab/common/daemon.py
+++ b/third_party/logilab/common/daemon.py
@@ -26,8 +26,6 @@ import sys
import time
import warnings
-from six.moves import range
-
def setugid(user):
"""Change process user and group ID
@@ -48,7 +46,7 @@ def setugid(user):
raise OSError(err, os.strerror(err), 'initgroups')
os.setgid(passwd.pw_gid)
os.setuid(passwd.pw_uid)
- os.environ['HOME'] = passwd.pw_dir
+ os.putenv('HOME', passwd.pw_dir)
def daemonize(pidfile=None, uid=None, umask=077):
@@ -79,7 +77,7 @@ def daemonize(pidfile=None, uid=None, umask=077):
for i in range(3):
try:
os.dup2(null, i)
- except OSError as e:
+ except OSError, e:
if e.errno != errno.EBADF:
raise
os.close(null)
« no previous file with comments | « third_party/logilab/common/corbautils.py ('k') | third_party/logilab/common/date.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698