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
e443a708
Commit
e443a708
authored
Dec 15, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for both stringtype and unicodetype to prevent future problems.
parent
6cc79af9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
lib/python/ZServer/FCGIServer.py
lib/python/ZServer/FCGIServer.py
+2
-2
lib/python/ZServer/HTTPServer.py
lib/python/ZServer/HTTPServer.py
+2
-2
lib/python/ZServer/PCGIServer.py
lib/python/ZServer/PCGIServer.py
+2
-2
No files found.
lib/python/ZServer/FCGIServer.py
View file @
e443a708
...
...
@@ -45,8 +45,8 @@ import DebugLogger
from
cStringIO
import
StringIO
from
tempfile
import
TemporaryFile
import
socket
,
string
,
os
,
sys
,
time
from
types
import
StringType
import
thread
from
types
import
StringTypes
tz_for_log
=
compute_timezone_for_log
()
...
...
@@ -558,7 +558,7 @@ class FCGIChannel(asynchat.async_chat):
self
.
closed
=
1
while
self
.
producer_fifo
:
p
=
self
.
producer_fifo
.
first
()
if
p
is
not
None
and
type
(
p
)
!=
StringType
:
if
p
is
not
None
and
not
isinstance
(
p
,
StringTypes
)
:
p
.
more
()
# free up resources held by producer
self
.
producer_fifo
.
pop
()
asyncore
.
dispatcher
.
close
(
self
)
...
...
lib/python/ZServer/HTTPServer.py
View file @
e443a708
...
...
@@ -35,10 +35,10 @@ import sys
import
re
import
os
import
posixpath
import
types
import
thread
import
time
import
socket
from
types
import
StringTypes
from
cStringIO
import
StringIO
from
PubCore
import
handle
...
...
@@ -338,7 +338,7 @@ class zhttp_channel(http_channel):
self
.
current_request
=
None
while
self
.
producer_fifo
:
p
=
self
.
producer_fifo
.
first
()
if
p
is
not
None
and
type
(
p
)
!=
types
.
StringType
:
if
p
is
not
None
and
not
isinstance
(
p
,
StringTypes
)
:
p
.
more
()
# free up resources held by producer
self
.
producer_fifo
.
pop
()
dispatcher
.
close
(
self
)
...
...
lib/python/ZServer/PCGIServer.py
View file @
e443a708
...
...
@@ -47,7 +47,7 @@ import DebugLogger
from
cStringIO
import
StringIO
from
tempfile
import
TemporaryFile
import
socket
,
string
,
os
,
sys
,
time
from
types
import
StringType
,
TupleType
from
types
import
TupleType
,
StringTypes
tz_for_log
=
compute_timezone_for_log
()
...
...
@@ -203,7 +203,7 @@ class PCGIChannel(asynchat.async_chat):
self
.
closed
=
1
while
self
.
producer_fifo
:
p
=
self
.
producer_fifo
.
first
()
if
p
is
not
None
and
type
(
p
)
!=
StringType
:
if
p
is
not
None
and
not
isinstance
(
p
,
StringTypes
)
:
p
.
more
()
# free up resources held by producer
self
.
producer_fifo
.
pop
()
asyncore
.
dispatcher
.
close
(
self
)
...
...
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