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:
|
if kwargs:
|
||||||
args = ", ".join([str(x) for x in kwargs])
|
args = ", ".join([str(x) for x in kwargs])
|
||||||
raise TypeError("invalid keyword arguments: %s" % args)
|
raise TypeError("invalid keyword arguments: %s" % args)
|
||||||
out = sep.join([str(x) for x in args]) + end
|
at_start = True
|
||||||
file.write(out)
|
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):
|
def exec_(obj, globals=None, locals=None):
|
||||||
""" minimal backport of py3k exec statement. """
|
""" minimal backport of py3k exec statement. """
|
||||||
|
|
Loading…
Reference in New Issue