changeset 11:6ec84f2f703e

py3
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 15:56:34 -0800
parents 9abb7436bb10
children d6c52b4d01a0
files markup/form.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/markup/form.py	Tue Nov 03 15:44:56 2020 -0800
+++ b/markup/form.py	Tue Nov 03 15:56:34 2020 -0800
@@ -192,7 +192,7 @@
 
     def add_element(self, func, name, *args, **kwargs):
 
-        if isinstance(func, basestring):
+        if isinstance(func, string):
             func_name = func
             func = getattr(self, func)
         else:
@@ -232,7 +232,7 @@
 
         for func, index in zip(funcs, range(len(funcs))):
             # no validation (yet)
-            if isinstance(func, basestring):
+            if isinstance(func, string):
                 func = getattr(self, func)
             html.write('{}\n'.format(func('%s-%d' % (name, index), *args[index],
                                           **kwargs[index])))