diff options
author | Julian Berman <Julian@GrayVines.com> | 2021-08-18 10:14:43 +0100 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2021-08-18 10:14:43 +0100 |
commit | b2b6801fdc32d21de81b6effb8bb5d74c29a4926 (patch) | |
tree | 604a78bab15e77407bfc993115eeee0c66ef7888 /jsonschema/_validators.py | |
parent | fd5de14373830187533660edf79dce29503eb41a (diff) | |
download | jsonschema-b2b6801fdc32d21de81b6effb8bb5d74c29a4926.tar.gz |
Remove more unneeded u prefixes.
Diffstat (limited to 'jsonschema/_validators.py')
-rw-r--r-- | jsonschema/_validators.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jsonschema/_validators.py b/jsonschema/_validators.py index 6b1c765..ebbcaee 100644 --- a/jsonschema/_validators.py +++ b/jsonschema/_validators.py @@ -453,12 +453,12 @@ def not_(validator, not_schema, instance, schema): def if_(validator, if_schema, instance, schema): if validator.is_valid(instance, if_schema): - if u"then" in schema: - then = schema[u"then"] + if "then" in schema: + then = schema["then"] for error in validator.descend(instance, then, schema_path="then"): yield error - elif u"else" in schema: - else_ = schema[u"else"] + elif "else" in schema: + else_ = schema["else"] for error in validator.descend(instance, else_, schema_path="else"): yield error |