Skip to content

Commit

Permalink
Fix fdopen RuntimeWarning in 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
junnplus committed Oct 29, 2019
1 parent 3fcb551 commit 636dd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/workers/workertmp.py
Expand Up @@ -32,7 +32,7 @@ def __init__(self, cfg):
try:
if not IS_CYGWIN:
util.unlink(name)
self._tmp = os.fdopen(fd, 'w+b', 1)
self._tmp = os.fdopen(fd, 'w+b', 0)
except:
os.close(fd)
raise
Expand Down

0 comments on commit 636dd9a

Please sign in to comment.