bitkeeper revision 1.1159.187.57 (41b5eb65x_JxVnjR7uA3FzGZDy11Hw)

xend fixes.
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2004-12-07 17:41:57 +00:00
1 parent fdea3f84ab
commit aee8954955
2 files changed
+5 -2

No files matched your search

+3 -1
View File
@@ -14,6 +14,8 @@ import httplib
import random
import md5
from xen.util.ip import _readline, _readlines
# Extract from HTML4 spec.
## The following example illustrates "multipart/form-data"
## encoding. Suppose we have the following form:
@@ -122,7 +124,7 @@ def encode_multipart(d):
out.write('"\r\n')
out.write('Content-Type: application/octet-stream\r\n')
out.write('\r\n')
for l in v.readlines():
for l in _readlines(v):
out.write(l)
else:
out.write('Content-Disposition: form-data; name="')
+2 -1
View File
@@ -17,6 +17,7 @@ import types
import errno
import string
from StringIO import StringIO
from xen.util.ip import _readline, _readlines
__all__ = [
"mime_type",
@@ -713,7 +714,7 @@ def parse(io):
"""
pin = Parser()
while 1:
buf = io.readline()
buf = _readline(io)
pin.input(buf)
if len(buf) == 0:
break
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.