X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=sqlconvert%2Fprint_tokens.py;h=6aa6fb4dbf81e229c46cc503f94ae78bcae170b3;hp=a0a4f8b05bcbc651b232b5cc636c952c8ab760fc;hb=9c98db83f4a907d85e5b29404bc50df0e4a2dc66;hpb=9412933a68ffdcb20dacb9ff927d4eb285fded2e 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: