fix some broken things from syntax conversion

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2009-08-29 14:39:55 -05:00
parent fb365e47dc
commit 4369c65790
3 changed files with 4 additions and 3 deletions

View File

@ -18,6 +18,6 @@ def main():
try:
location = mod.__file__
except AttributeError:
sys.stderr.write("module (has no __file__): " + mod)
sys.stderr.write("module (has no __file__): " + str(mod))
else:
print(location)

View File

@ -34,7 +34,7 @@ class TestThreadOut:
defaults = []
def f(l):
out.setwritefunc(l.append)
print(id(l))
sys.stdout.write(str(id(l)))
out.delwritefunc()
print(1)
out.setdefaultwriter(defaults.append)
@ -46,7 +46,7 @@ class TestThreadOut:
pool.dispatch(f, l)
pool.shutdown()
for name, value in out.__dict__.items():
sys.stderr.write("%s: %s\n" %(name, value))
sys.stderr.write("%s: %s" %(name, value))
pool.join(2.0)
for i in range(num):
item = listlist[i]

View File

@ -2,6 +2,7 @@
"""
import sys
from py.xml import Namespace, Tag
from py.__.xmlobj.visit import SimpleUnicodeVisitor