Changed is ALREADY_HANDLED test to isinstance test

This commit is contained in:
Ben Ford
2010-05-05 07:08:07 +01:00
parent 1a6f4e491f
commit 6ddba84970

View File

@@ -312,7 +312,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
try:
try:
result = self.application(self.environ, start_response)
if result is ALREADY_HANDLED:
if isinstance(result, _AlreadyHandled):
self.close_connection = 1
return
if not headers_sent and hasattr(result, '__len__') and \