[issue27433] Missing "as err" in Lib/socket.py
Berker Peksag added the comment: This is a duplicate of issue 26384. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> UnboundLocalError in socket._sendfile_use_sendfile type: -> behavior ___
[issue27433] Missing "as err" in Lib/socket.py
New submission from Tobias Burnus (PDF): Cf. https://hg.python.org/cpython/file/tip/Lib/socket.py#l261 In _sendfile_use_sendfile, one has: try: fsize = os.fstat(fileno).st_size except OSError: raise _GiveupOnSendfile(err) # not a regular