Message67940
| Author | alexandre.vassalotti |
|---|---|
| Recipients | alexandre.vassalotti, brett.cannon, hdiogenes |
| Date | 2008-06-11.04:22:36 |
| SpamBayes Score | 0.02989903 |
| Marked as misclassified | No |
| Message-id | <1213158172.15.0.80264363543.issue2918@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Here's another patch fixes the failing tests. I have tried to support
the buffer attribute using following hack:
@property
def buffer(self):
# XXX Hack to support the buffer attribute.
buf = codecs.getwriter(self.encoding)(BytesIO(), self.errors)
value = self.getvalue()
buf.write(value[:self.tell()])
pos = buf.stream.tell()
buf.write(value[self.tell():])
buf.stream.seek(pos)
return buf.stream
but this doesn't work since some application might want to modify the
buffer. So, I removed it. Another thing that bothered me were the bogus
encoding and errors arguments. So, I also removed them. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-06-11 04:22:53 | alexandre.vassalotti | set | spambayes_score: 0.029899 -> 0.02989903 recipients: + alexandre.vassalotti, brett.cannon, hdiogenes |
| 2008-06-11 04:22:52 | alexandre.vassalotti | set | spambayes_score: 0.029899 -> 0.029899 messageid: <1213158172.15.0.80264363543.issue2918@psf.upfronthosting.co.za> |
| 2008-06-11 04:22:50 | alexandre.vassalotti | link | issue2918 messages |
| 2008-06-11 04:22:49 | alexandre.vassalotti | create | |