summaryrefslogtreecommitdiff
path: root/daemon.py
diff options
context:
space:
mode:
authorRémi Cardona <remi.cardona@free.fr>2014-09-22 16:55:01 +0200
committerRémi Cardona <remi.cardona@free.fr>2014-09-22 16:55:01 +0200
commit72bc9434015bd6453add8869fdff951fe12735db (patch)
treeed85c877f6426124b8faa75532fd47d5a69dbb68 /daemon.py
parent41177464eaff4aed29ac31c94b31d3720c0c1b63 (diff)
downloadlogilab-common-72bc9434015bd6453add8869fdff951fe12735db.tar.gz
Consistently use the generator version of range
That way we get the same behavior on python2 and python3.
Diffstat (limited to 'daemon.py')
-rw-r--r--daemon.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon.py b/daemon.py
index f9f4971..6324b20 100644
--- a/daemon.py
+++ b/daemon.py
@@ -26,6 +26,8 @@ import sys
import time
import warnings
+from six.moves import range
+
def setugid(user):
"""Change process user and group ID