Skip to content

Commit

Permalink
fix util.set_owner_process
Browse files Browse the repository at this point in the history
Python 2.x is not supported anymore, let's remove this extra feature.

fix #3212
  • Loading branch information
benoitc committed Aug 11, 2024
1 parent 5aeb065 commit 7268a61
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gunicorn/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 7268a61

Please sign in to comment.