Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4ccd99
)
Fixed Python3-compatibility error in multipart code.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 8 Nov 2015 02:51:51 +0000
(
03:51
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 8 Nov 2015 02:51:51 +0000
(
03:51
+0100)
wrw/form.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/form.py
b/wrw/form.py
index
53fc82d
..
7f4930d
100644
(file)
--- a/
wrw/form.py
+++ b/
wrw/form.py
@@
-50,7
+50,7
@@
class formpart(object):
break
while len(self.form.buf) <= len(lboundary):
ret = req.input.read(8192)
- if ret == "":
+ if ret ==
b
"":
raise badmultipart("Missing last multipart boundary")
self.form.buf += ret
@@
-61,7
+61,7
@@
class formpart(object):
self.buf = self.buf[limit:]
else:
ret = self.buf
- self.buf = ""
+ self.buf =
b
""
return ret
def readline(self, limit=-1):
@@
-71,7
+71,7
@@
class formpart(object):
if p < 0:
if self.eof:
ret = self.buf
- self.buf = ""
+ self.buf =
b
""
return ret
last = len(self.buf)
self.fillbuf(last + 128)