diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2015-07-26 10:51:01 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2015-07-26 10:51:01 +0200 |
| commit | c66fbacf8b3095c6de264657362e403920edace2 (patch) | |
| tree | 562182cf20b6d8937f61fcd181be9866988f4e8f /bin/sqlformat | |
| parent | 621e1d84607a158491ce80c47814e51a8c366498 (diff) | |
| download | sqlparse-c66fbacf8b3095c6de264657362e403920edace2.tar.gz | |
Don't add duplicate "\n" when using sqlformat tool (fixes #191).
Diffstat (limited to 'bin/sqlformat')
| -rwxr-xr-x | bin/sqlformat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sqlformat b/bin/sqlformat index fcee452..cecbed9 100755 --- a/bin/sqlformat +++ b/bin/sqlformat @@ -77,7 +77,7 @@ def main(): data = sys.stdin.read() else: try: - data = '\n'.join(open(args[0]).readlines()) + data = ''.join(open(args[0]).readlines()) except OSError: err = sys.exc_info()[1] # Python 2.5 compatibility _error('Failed to read %s: %s' % (args[0], err), exit_=1) |
