From f1b5542cba42b44b993f8063876b74d142a08915 Mon Sep 17 00:00:00 2001 From: bashrc Date: Sat, 1 Aug 2026 14:55:33 +0100 Subject: [PATCH] No return parameter --- src/pyjsonld.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyjsonld.py b/src/pyjsonld.py index e8c14c927..13631a78f 100644 --- a/src/pyjsonld.py +++ b/src/pyjsonld.py @@ -3879,7 +3879,7 @@ class JsonLdProcessor(object): print('EX: Cyclical context definition detected. ' + 'context: ' + str(local_ctx) + ' ' + 'term: ' + str(term)) - return {} + return # now defining term defined[term] = False @@ -3889,13 +3889,13 @@ class JsonLdProcessor(object): 'Invalid JSON-LD syntax; keywords cannot be overridden. ' + 'context: ' + str(local_ctx) + ' ' + 'term: ' + str(term)) - return {} + return if term == '': print('EX: Invalid JSON-LD syntax; ' + 'a term cannot be an empty string. ' + 'context: ' + str(local_ctx)) - return {} + return # remove old mapping if term in active_ctx['mappings']: