diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2012-11-23 08:54:10 +0000 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2012-11-23 08:54:10 +0000 |
commit | 774e46526945ea91265734a2dc82d15eed515577 (patch) | |
tree | 734ae210c20a98f01fe029f7e6eeb7a93b4617fb /src/examples/sql2dot.py | |
parent | 6b12041d4656f4cda910f24acda8d71013166fbd (diff) | |
download | pyparsing-git-774e46526945ea91265734a2dc82d15eed515577.tar.gz |
Clean up examples to be Python 3 compatible
Diffstat (limited to 'src/examples/sql2dot.py')
-rw-r--r-- | src/examples/sql2dot.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/sql2dot.py b/src/examples/sql2dot.py index 7fab65f..1156207 100644 --- a/src/examples/sql2dot.py +++ b/src/examples/sql2dot.py @@ -89,8 +89,8 @@ comment_def.setParseAction( replaceWith("") ) statement_def = comment_def | create_table_def | add_fkey_def | other_statement_def
defs = OneOrMore(statement_def)
-print """digraph g { graph [ rankdir = "LR" ]; """
+print("""digraph g { graph [ rankdir = "LR" ]; """)
for i in defs.parseString(sampleSQL):
if i!="":
- print i
-print "}"
\ No newline at end of file + print(i)
+print("}")
\ No newline at end of file |