aboutsummaryrefslogtreecommitdiff
path: root/steuermann/nodes.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-07-03 21:02:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2016-07-03 21:02:52 -0400
commita5276b9056bedc1b78a6b809f68c9f77daf6ee3f (patch)
treeb94e1aeb5958c9269526ed0495340bcdb1847c9d /steuermann/nodes.py
parent75d3c99573e2459579afed8c540beadec8011de7 (diff)
downloadsteuermann-a5276b9056bedc1b78a6b809f68c9f77daf6ee3f.tar.gz
Fix StringIO python 3k compat
Diffstat (limited to 'steuermann/nodes.py')
-rw-r--r--steuermann/nodes.py6
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]