diff options
author | Rémi Cardona <remi.cardona@free.fr> | 2014-09-22 16:55:01 +0200 |
---|---|---|
committer | Rémi Cardona <remi.cardona@free.fr> | 2014-09-22 16:55:01 +0200 |
commit | 72bc9434015bd6453add8869fdff951fe12735db (patch) | |
tree | ed85c877f6426124b8faa75532fd47d5a69dbb68 /daemon.py | |
parent | 41177464eaff4aed29ac31c94b31d3720c0c1b63 (diff) | |
download | logilab-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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -26,6 +26,8 @@ import sys import time import warnings +from six.moves import range + def setugid(user): """Change process user and group ID |