Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
cc9b3323
Commit
cc9b3323
authored
Sep 24, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_encode_unicode() is a method not a function.
Caught by pychecker.
parent
c93d8550
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+3
-3
No files found.
lib/python/ZPublisher/HTTPResponse.py
View file @
cc9b3323
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment