changeset 4:f060cb19d58d

allowed StringIO
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 13:08:18 -0800
parents 76f5294df3a5
children 40eefa5b5223
files markup/form.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/markup/form.py	Tue Nov 03 13:06:46 2020 -0800
+++ b/markup/form.py	Tue Nov 03 13:08:18 2020 -0800
@@ -1,5 +1,10 @@
 import markup
-from cStringIO import StringIO
+
+try:
+    from cStringIO import StringIO
+except ModuleNotFoundError:
+    from StringIO import StringIO
+
 
 class Form(object):
     """a simple class for HTML forms"""