* introduce py.io.TextIO and py.io.StringIO to help with 3k transition and to clarify

intentions when doing "in-memory" files. Replace most usages of StringIO.

* consolidate py.io's files and tests into fewer files, make files 3k-importable

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-08-20 20:47:39 +02:00
parent 046ac957ab
commit 1fcd373bd5
23 changed files with 255 additions and 268 deletions

View File

@@ -117,7 +117,7 @@ class PluginManager(object):
# =====================================================
methods = collectattr(plugin)
hooks = collectattr(hookspec)
stringio = py.std.StringIO.StringIO()
stringio = py.io.TextIO()
def Print(*args):
if args:
stringio.write(" ".join(map(str, args)))