aboutsummaryrefslogtreecommitdiff
path: root/steuermann/report.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-07-03 19:51:45 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2016-07-03 19:51:45 -0400
commite0962f13a189e32dd0ff7f5837cc0be1150cf150 (patch)
treefa3baf28264ad03f3ac4bd4fcb757ff2ce0512e1 /steuermann/report.py
parent3ceefc1fef740c4d1d9afd7c42e5bc7189b7032b (diff)
downloadsteuermann-e0962f13a189e32dd0ff7f5837cc0be1150cf150.tar.gz
Python 3k portability issues; implement more pleasent exit sequence from interactive mode
Diffstat (limited to 'steuermann/report.py')
-rw-r--r--steuermann/report.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/steuermann/report.py b/steuermann/report.py
index ab4796b..afdf650 100644
--- a/steuermann/report.py
+++ b/steuermann/report.py
@@ -7,7 +7,11 @@ import time
import sys
import pandokia.text_table as text_table
import pandokia.common
-import StringIO
+
+try:
+ from io import StringIO
+except ImportError:
+ import StringIO
# maybe the output is html 3.2 - in any case, it is way simpler than
# more recent standards.