# HG changeset patch # User Jeff Hammel # Date 1604447096 28800 # Node ID 9abb7436bb10202fb7ffa937db240ec4030e7d76 # Parent aa97fe7223c81bc1ece2cbd7f8b2f54d064d00ad syntax diff -r aa97fe7223c8 -r 9abb7436bb10 markup/form.py --- a/markup/form.py Tue Nov 03 15:43:50 2020 -0800 +++ b/markup/form.py Tue Nov 03 15:44:56 2020 -0800 @@ -102,7 +102,7 @@ except Exception as e: error = str(e) else: - if isinstance(validation, string: + if isinstance(validation, string): error = validation # error string elif validation == False: error = "Illegal value for %s" % name