From 7b05ffd95d2ab8c6653ce4efc49658efb79965c8 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 10 Nov 2016 22:12:08 -0500 Subject: [PATCH] =?UTF-8?q?Removed=20a=20bit=20of=20builtin=5Fserver=20tes?= =?UTF-8?q?ts=20for=20Python=20=E2=89=A4=202.7.3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/builtin_server/tests.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/builtin_server/tests.py b/tests/builtin_server/tests.py index e7ba4272b8..14253f70a4 100644 --- a/tests/builtin_server/tests.py +++ b/tests/builtin_server/tests.py @@ -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):