Skip to content

Commit 7268a61

Browse files
committed
fix util.set_owner_process
Python 2.x is not supported anymore, let's remove this extra feature. fix #3212
1 parent 5aeb065 commit 7268a61

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: gunicorn/util.py

-4
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ def set_owner_process(uid, gid, initgroups=False):
147147
except KeyError:
148148
initgroups = False
149149

150-
# versions of python < 2.6.2 don't manage unsigned int for
151-
# groups like on osx or fedora
152-
gid = abs(gid) & 0x7FFFFFFF
153-
154150
if initgroups:
155151
os.initgroups(username, gid)
156152
elif gid != os.getgid():

0 commit comments

Comments
 (0)