Skip to content

Commit

Permalink
Merge pull request benoitc#3188 from tnusser/patch-1
Browse files Browse the repository at this point in the history
Update sock.py by making bind list creation more readable
  • Loading branch information
benoitc authored Aug 10, 2024
2 parents a24ff07 + ec52843 commit e4b5d48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gunicorn/sock.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def create_sockets(conf, log, fds=None):
# first initialization of gunicorn
old_umask = os.umask(conf.umask)
try:
for addr in [bind for bind in conf.address if not isinstance(bind, int)]:
bind_list = [bind for bind in conf.address if not isinstance(bind, int)]
for addr in bind_list:
sock = create_socket(conf, log, addr)
set_socket_options(conf, sock)
listeners.append(sock)
Expand Down

0 comments on commit e4b5d48

Please sign in to comment.