]> git.phdru.name Git - sqlconvert.git/blobdiff - mysql2sql/print_tokens.py
Rename mysql2sql -> sqlconvert
[sqlconvert.git] / mysql2sql / print_tokens.py
diff --git a/mysql2sql/print_tokens.py b/mysql2sql/print_tokens.py
deleted file mode 100644 (file)
index 3e2b0d5..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-
-import sys
-
-
-def print_tokens(token_list, outfile=sys.stdout, encoding=None):
-    if encoding:
-        outfile = getattr(outfile, 'buffer', outfile)
-    for token in token_list.flatten():
-        normalized = token.normalized
-        if encoding:
-            normalized = normalized.encode(encoding)
-        outfile.write(normalized)
-
-
-def tlist2str(token_list):
-    return u''.join(token.normalized for token in token_list.flatten())