changeset 5:40eefa5b5223

py3
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 13:10:34 -0800
parents f060cb19d58d
children 275ffbf0a94a
files markup/form.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/markup/form.py	Tue Nov 03 13:08:18 2020 -0800
+++ b/markup/form.py	Tue Nov 03 13:10:34 2020 -0800
@@ -3,7 +3,10 @@
 try:
     from cStringIO import StringIO
 except ModuleNotFoundError:
-    from StringIO import StringIO
+    try:
+        from StringIO import StringIO
+    except ModuleNotFoundError:
+        from io import StringIO
 
 
 class Form(object):