make print write each argument individually
--HG-- branch : trunk
This commit is contained in:
parent
45a9aa536f
commit
fb365e47dc
|
@ -28,8 +28,13 @@ else:
|
|||
if kwargs:
|
||||
args = ", ".join([str(x) for x in kwargs])
|
||||
raise TypeError("invalid keyword arguments: %s" % args)
|
||||
out = sep.join([str(x) for x in args]) + end
|
||||
file.write(out)
|
||||
at_start = True
|
||||
for x in args:
|
||||
if not at_start:
|
||||
file.write(sep)
|
||||
file.write(str(x))
|
||||
at_start = False
|
||||
file.write(end)
|
||||
|
||||
def exec_(obj, globals=None, locals=None):
|
||||
""" minimal backport of py3k exec statement. """
|
||||
|
|
Loading…
Reference in New Issue