# HG changeset patch # User Jeff Hammel # Date 1604447794 28800 # Node ID 6ec84f2f703ed1dbf2b3f24ff3c8fc78e2118c33 # Parent 9abb7436bb10202fb7ffa937db240ec4030e7d76 py3 diff -r 9abb7436bb10 -r 6ec84f2f703e markup/form.py --- 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])))