diff options
Diffstat (limited to 'steuermann/nodes.py')
-rw-r--r-- | steuermann/nodes.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/steuermann/nodes.py b/steuermann/nodes.py index aaf42d6..521db2d 100644 --- a/steuermann/nodes.py +++ b/steuermann/nodes.py @@ -237,7 +237,11 @@ class node(object) : # debug - make a string representation of all the nodes def show_nodes( node_index ) : - import cStringIO as StringIO + try: + from io import StringIO + except ImportError: + from cStringIO import StringIO + s = StringIO.StringIO() for x in sorted( [ x for x in node_index ] ) : x = node_index[x] |