diff options
author | Piet Delport <pjdelport@gmail.com> | 2013-02-22 17:41:44 +0200 |
---|---|---|
committer | Piet Delport <pjdelport@gmail.com> | 2013-02-22 17:41:44 +0200 |
commit | e6f93efe83abfd439db0f2bd67804a39e96eab5c (patch) | |
tree | 9c61f8ab9472e85e321bdf6a520753278cd54bed /bin | |
parent | 9533194b2fa738d83689b8645c07d7ee021f9aaf (diff) | |
download | sqlparse-e6f93efe83abfd439db0f2bd67804a39e96eab5c.tar.gz |
Compatibility: Avoid "print >>sys.stderr".
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sqlformat | 4 |
1 files changed, 2 insertions, 2 deletions
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.') |