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
945ec4b5
Commit
945ec4b5
authored
Jan 13, 2007
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed 'types' imports
parent
ba603247
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
8 deletions
+4
-8
lib/python/ZServer/FCGIServer.py
lib/python/ZServer/FCGIServer.py
+1
-2
lib/python/ZServer/HTTPResponse.py
lib/python/ZServer/HTTPResponse.py
+0
-1
lib/python/ZServer/HTTPServer.py
lib/python/ZServer/HTTPServer.py
+1
-2
lib/python/ZServer/PCGIServer.py
lib/python/ZServer/PCGIServer.py
+2
-3
No files found.
lib/python/ZServer/FCGIServer.py
View file @
945ec4b5
...
@@ -46,7 +46,6 @@ from cStringIO import StringIO
...
@@ -46,7 +46,6 @@ from cStringIO import StringIO
from
tempfile
import
TemporaryFile
from
tempfile
import
TemporaryFile
import
socket
,
string
,
os
,
sys
,
time
import
socket
,
string
,
os
,
sys
,
time
import
thread
import
thread
from
types
import
StringTypes
import
base64
import
base64
tz_for_log
=
compute_timezone_for_log
()
tz_for_log
=
compute_timezone_for_log
()
...
@@ -573,7 +572,7 @@ class FCGIChannel(asynchat.async_chat):
...
@@ -573,7 +572,7 @@ class FCGIChannel(asynchat.async_chat):
self
.
closed
=
1
self
.
closed
=
1
while
self
.
producer_fifo
:
while
self
.
producer_fifo
:
p
=
self
.
producer_fifo
.
first
()
p
=
self
.
producer_fifo
.
first
()
if
p
is
not
None
and
not
isinstance
(
p
,
StringTypes
):
if
p
is
not
None
and
not
isinstance
(
p
,
basestring
):
p
.
more
()
# free up resources held by producer
p
.
more
()
# free up resources held by producer
self
.
producer_fifo
.
pop
()
self
.
producer_fifo
.
pop
()
asyncore
.
dispatcher
.
close
(
self
)
asyncore
.
dispatcher
.
close
(
self
)
...
...
lib/python/ZServer/HTTPResponse.py
View file @
945ec4b5
...
@@ -29,7 +29,6 @@ from medusa import http_server
...
@@ -29,7 +29,6 @@ from medusa import http_server
import
asyncore
import
asyncore
from
Producers
import
ShutdownProducer
,
LoggingProducer
,
CallbackProducer
,
\
from
Producers
import
ShutdownProducer
,
LoggingProducer
,
CallbackProducer
,
\
file_part_producer
,
file_close_producer
,
iterator_producer
file_part_producer
,
file_close_producer
,
iterator_producer
from
types
import
LongType
import
DebugLogger
import
DebugLogger
...
...
lib/python/ZServer/HTTPServer.py
View file @
945ec4b5
...
@@ -38,7 +38,6 @@ import posixpath
...
@@ -38,7 +38,6 @@ import posixpath
import
thread
import
thread
import
time
import
time
import
socket
import
socket
from
types
import
StringTypes
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
from
PubCore
import
handle
from
PubCore
import
handle
...
@@ -383,7 +382,7 @@ class zhttp_channel(http_channel):
...
@@ -383,7 +382,7 @@ class zhttp_channel(http_channel):
self
.
current_request
=
None
self
.
current_request
=
None
while
self
.
producer_fifo
:
while
self
.
producer_fifo
:
p
=
self
.
producer_fifo
.
first
()
p
=
self
.
producer_fifo
.
first
()
if
p
is
not
None
and
not
isinstance
(
p
,
StringTypes
):
if
p
is
not
None
and
not
isinstance
(
p
,
basestring
):
p
.
more
()
# free up resources held by producer
p
.
more
()
# free up resources held by producer
self
.
producer_fifo
.
pop
()
self
.
producer_fifo
.
pop
()
dispatcher
.
close
(
self
)
dispatcher
.
close
(
self
)
...
...
lib/python/ZServer/PCGIServer.py
View file @
945ec4b5
...
@@ -47,7 +47,6 @@ import DebugLogger
...
@@ -47,7 +47,6 @@ import DebugLogger
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
from
tempfile
import
TemporaryFile
from
tempfile
import
TemporaryFile
import
socket
,
string
,
os
,
sys
,
time
import
socket
,
string
,
os
,
sys
,
time
from
types
import
TupleType
,
StringTypes
tz_for_log
=
compute_timezone_for_log
()
tz_for_log
=
compute_timezone_for_log
()
...
@@ -163,7 +162,7 @@ class PCGIChannel(asynchat.async_chat):
...
@@ -163,7 +162,7 @@ class PCGIChannel(asynchat.async_chat):
else
:
else
:
method
=
"GET"
method
=
"GET"
addr
=
self
.
addr
addr
=
self
.
addr
if
addr
and
type
(
addr
)
is
TupleType
:
if
addr
and
isinstance
(
addr
,
tuple
)
:
self
.
server
.
logger
.
log
(
self
.
server
.
logger
.
log
(
addr
[
0
],
addr
[
0
],
'%d - - [%s] "%s %s" %d %d "%s" "%s"'
%
(
'%d - - [%s] "%s %s" %d %d "%s" "%s"'
%
(
...
@@ -203,7 +202,7 @@ class PCGIChannel(asynchat.async_chat):
...
@@ -203,7 +202,7 @@ class PCGIChannel(asynchat.async_chat):
self
.
closed
=
1
self
.
closed
=
1
while
self
.
producer_fifo
:
while
self
.
producer_fifo
:
p
=
self
.
producer_fifo
.
first
()
p
=
self
.
producer_fifo
.
first
()
if
p
is
not
None
and
not
isinstance
(
p
,
StringTypes
):
if
p
is
not
None
and
not
isinstance
(
p
,
basestring
):
p
.
more
()
# free up resources held by producer
p
.
more
()
# free up resources held by producer
self
.
producer_fifo
.
pop
()
self
.
producer_fifo
.
pop
()
asyncore
.
dispatcher
.
close
(
self
)
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