From e0962f13a189e32dd0ff7f5837cc0be1150cf150 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 3 Jul 2016 19:51:45 -0400 Subject: Python 3k portability issues; implement more pleasent exit sequence from interactive mode --- steuermann/report.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'steuermann/report.py') 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. -- cgit