mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
bitkeeper revision 1.1159.187.57 (41b5eb65x_JxVnjR7uA3FzGZDy11Hw)
xend fixes.
This commit is contained in:
1 parent
fdea3f84ab
commit
aee8954955
2 files changed
+5
-2
No files matched your search
@@ -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="')
|
||||
|
||||
@@ -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
|
||||
|
||||