Removed a bit of builtin_server tests for Python ≤ 2.7.3.

This commit is contained in:
Tim Graham 2016-11-10 22:12:08 -05:00
parent 321e94fa41
commit 7b05ffd95d
1 changed files with 0 additions and 11 deletions

View File

@ -39,17 +39,6 @@ class ServerHandler(simple_server.ServerHandler, object):
super(ServerHandler, self).error_output(environ, start_response)
return ['\n'.join(traceback.format_exception(*sys.exc_info()))]
# Backport of http://hg.python.org/cpython/rev/d5af1b235dab. See #16241.
# This can be removed when support for Python <= 2.7.3 is deprecated.
def finish_response(self):
try:
if not self.result_is_file() or not self.sendfile():
for data in self.result:
self.write(data)
self.finish_content()
finally:
self.close()
class DummyHandler(object):
def log_request(self, *args, **kwargs):