#! /usr/bin/env python
+from __future__ import print_function
import sys
from sqlparse import parse
"/*! directive*/ INSERT INTO `MyTable` (`Id`, `Name`) "
"VALUES (1, 'one')"
):
- print "----------"
+ print("----------")
for parsed in parse(query):
requote_names(parsed)
print_tokens(parsed)
print_subtree(parsed)
- print "----------"
+ print("----------")
def main(query):
#! /usr/bin/env python
+from __future__ import print_function
import os
os.environ["PYTHONPATH"] = os.curdir
for test in sorted(tests):
- print test
+ print(test)
subprocess.call((sys.executable, '-m', test))
if __name__ == '__main__':