#8420: Fix traceback on 404 in ChunkedGlibHTTPRequestHandler

self._cleanup does the self._file.close() anyway if the file exists.
The self._file.close() removed here is redundant, and will always
fail on file not found, which is handled in send_head by returning
None for self._file.
master
Morgan Collett 16 years ago
parent b58182a970
commit e9ebfdea3a

@ -97,7 +97,6 @@ class ChunkedGlibHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
gobject.IO_ERR,
self._send_next_chunk)
else:
self._file.close()
self._cleanup()
def _send_next_chunk(self, source, condition):

Loading…
Cancel
Save