diff options
author | Yves Chevallier <nowox@x0x.ch> | 2017-06-15 10:06:14 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-07-05 15:16:24 -0400 |
commit | 037a95e7302d4a8d3dae1d4ad64a879ecd64791b (patch) | |
tree | fa12cbaa76f35ef4b0367d52b8d5f6095672c1df /mako | |
parent | c7b3792b6e215fe7a5e79c9170b5db858c5738be (diff) | |
download | mako-037a95e7302d4a8d3dae1d4ad64a879ecd64791b.tar.gz |
Use sys.stdout.write instead of print in cmdline
The `print` function adds an unwanted `\n` char.
Change-Id: I4e345214352f0925c374145f41be45550da27393
Pull-request: https://github.com/zzzeek/mako/pull/23
Diffstat (limited to 'mako')
-rwxr-xr-x | mako/cmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mako/cmd.py b/mako/cmd.py index dd1f833..8db1346 100755 --- a/mako/cmd.py +++ b/mako/cmd.py @@ -58,7 +58,7 @@ def cmdline(argv=None): kw = dict([varsplit(var) for var in options.var]) try: - print(template.render(**kw)) + sys.stdout.write(template.render(**kw)) except: _exit() |