head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.09.22.08.11.53; author ryoon; state Exp; branches; next ; commitid hqkZzLouZqbPLAWG; desc @@ 1.1 log @lang/mozjs128: Fix Python build failure issues @ text @$NetBSD: patch-third__party_python_jsonschema_jsonschema_validators.py,v 1.1 2026/01/06 16:16:39 ryoon Exp $ --- third_party/python/jsonschema/jsonschema/validators.py.orig 2025-08-11 17:07:30.000000000 +0000 +++ third_party/python/jsonschema/jsonschema/validators.py @@@@ -875,8 +875,11 @@@@ class RefResolver: return None uri, fragment = urldefrag(url) for subschema in subschemas: + id = subschema["$id"] + if not isinstance(id, str): + continue target_uri = self._urljoin_cache( - self.resolution_scope, subschema["$id"], + self.resolution_scope, id, ) if target_uri.rstrip("/") == uri.rstrip("/"): if fragment: @