From e6f93efe83abfd439db0f2bd67804a39e96eab5c Mon Sep 17 00:00:00 2001 From: Piet Delport Date: Fri, 22 Feb 2013 17:41:44 +0200 Subject: Compatibility: Avoid "print >>sys.stderr". --- bin/sqlformat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/sqlformat') diff --git a/bin/sqlformat b/bin/sqlformat index 4b1753a..6a2496a 100755 --- a/bin/sqlformat +++ b/bin/sqlformat @@ -50,7 +50,7 @@ _FORMATTING_GROUP = group def _error(msg, exit_=None): """Print msg and optionally exit with return code exit_.""" - print >>sys.stderr, '[ERROR] %s' % msg + sys.stderr.write('[ERROR] %s\n' % msg) if exit_ is not None: sys.exit(exit_) @@ -66,7 +66,7 @@ def _build_formatter_opts(options): def main(): options, args = parser.parse_args() if options.verbose: - print >>sys.stderr, 'Verbose mode' + sys.stderr.write('Verbose mode\n') if len(args) != 1: _error('No input data.') -- cgit v1.2.1