Commit cc9b3323 authored by Jeremy Hylton's avatar Jeremy Hylton

_encode_unicode() is a method not a function.

Caught by pychecker.
parent c93d8550
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
'''CGI Response Output formatter '''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.69 2002/08/21 03:09:31 chrism Exp $''' $Id: HTTPResponse.py,v 1.70 2002/09/24 22:13:26 jeremy Exp $'''
__version__ = '$Revision: 1.69 $'[11:-2] __version__ = '$Revision: 1.70 $'[11:-2]
import types, os, sys, re import types, os, sys, re
import zlib, struct import zlib, struct
...@@ -290,7 +290,7 @@ class HTTPResponse(BaseResponse): ...@@ -290,7 +290,7 @@ class HTTPResponse(BaseResponse):
try: try:
body = str(body) body = str(body)
except UnicodeError: except UnicodeError:
body = _encode_unicode(unicode(body)) body = self._encode_unicode(unicode(body))
l = len(body) l = len(body)
if ((l < 200) and body[:1] == '<' and body.find('>') == l-1 and if ((l < 200) and body[:1] == '<' and body.find('>') == l-1 and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment