2to3 -f print
[sfa.git] / sfa / util / prefixTree.py
index 93b0c5c..0d7a557 100755 (executable)
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
 class prefixNode:
 
     def __init__(self, prefix):
@@ -88,10 +90,10 @@ class prefixTree:
         """
         if not node:
             node = self.root
-            print node.prefix
+            print(node.prefix)
 
         for child in node.children:
-            print child.prefix, 
+            print(child.prefix, end=' ') 
          
         for child in node.children:
             self.dump(child)