changeset 9:aa97fe7223c8

py3
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 15:43:50 -0800
parents ad2d8969ce25
children 9abb7436bb10
files markup/form.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/markup/form.py	Tue Nov 03 15:42:52 2020 -0800
+++ b/markup/form.py	Tue Nov 03 15:43:50 2020 -0800
@@ -102,7 +102,7 @@
                 except Exception as e:
                     error = str(e)
                 else:
-                    if isinstance(validation, basestring):
+                    if isinstance(validation, string:
                         error = validation # error string
                     elif validation == False:
                         error = "Illegal value for %s" % name