X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mysql2sql%2Fprint_tokens.py;h=2024c67a948b5fa9c61ce8310f8e65160aea83d4;hb=3f72ae846b3948ffd4b15416c8e84439d015424c;hp=bfcaad9fca3097757a49a2c4c38037f7ab7c34ec;hpb=585e9f1e375417b4a5928f184c6dc2936d6ed6ee;p=sqlconvert.git diff --git a/mysql2sql/print_tokens.py b/mysql2sql/print_tokens.py index bfcaad9..2024c67 100644 --- a/mysql2sql/print_tokens.py +++ b/mysql2sql/print_tokens.py @@ -10,15 +10,6 @@ except ImportError: from sqlparse.sql import TokenList -def print_subtree(token_list, outfile=sys.stdout, ident=0): - for token in token_list: - outfile.write(" "*ident) - outfile.write(repr(token)) - outfile.write("\n") - if isinstance(token, TokenList): - print_subtree(token, outfile, ident+4) - - def print_tokens(token_list, outfile=sys.stdout, level=0): for token in token_list: if not isinstance(token, TokenList):