Message176512
Keep in mind that it's pretty easy to roll your own CM wrapper:
@contextlib.contextmanager
def closes(file):
yield file
file.close()
Then you can do this:
with closes(StringIO()) as test:
test.write("hi!")
return test.getvalue()
This works for 2.5 and up. |
|
Date |
User |
Action |
Args |
2012-11-28 05:42:15 | eric.snow | set | recipients:
+ eric.snow, georg.brandl, belopolsky, ygale, orsenthil, alexandre.vassalotti, brian.curtin, Wade.Tattersall |
2012-11-28 05:42:15 | eric.snow | set | messageid: <1354081335.38.0.178244111133.issue1286@psf.upfronthosting.co.za> |
2012-11-28 05:42:15 | eric.snow | link | issue1286 messages |
2012-11-28 05:42:15 | eric.snow | create | |
|