X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=sqlconvert%2Fprint_tokens.py;h=6aa6fb4dbf81e229c46cc503f94ae78bcae170b3;hp=a0a4f8b05bcbc651b232b5cc636c952c8ab760fc;hb=HEAD;hpb=6b991d668a6f384e272fb19f09187a2d9407f1b3 diff --git a/sqlconvert/print_tokens.py b/sqlconvert/print_tokens.py index a0a4f8b..6aa6fb4 100644 --- a/sqlconvert/print_tokens.py +++ b/sqlconvert/print_tokens.py @@ -5,6 +5,8 @@ import sys def print_tokens(token_list, outfile=sys.stdout, encoding=None): if encoding: buffer = getattr(outfile, 'buffer', outfile) + else: + buffer = outfile for token in token_list.flatten(): normalized = token.normalized if encoding: