From 7268a610996eee15e328fce3daf8bf8e748f1627 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 11 Aug 2024 09:50:38 +0200 Subject: [PATCH] fix util.set_owner_process Python 2.x is not supported anymore, let's remove this extra feature. fix #3212 --- gunicorn/util.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gunicorn/util.py b/gunicorn/util.py index ecd81747..e66dbebf 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -147,10 +147,6 @@ def set_owner_process(uid, gid, initgroups=False): except KeyError: initgroups = False - # versions of python < 2.6.2 don't manage unsigned int for - # groups like on osx or fedora - gid = abs(gid) & 0x7FFFFFFF - if initgroups: os.initgroups(username, gid) elif gid != os.getgid():