Skip to content

Commit f5fdcb8

Browse files
bpowdavidlehn
authored andcommitted
fix variables in jsonld.link
The variable `frame` was masking scope of jsonld.frame. Also, `input` was being passed to jsonld.frame instead of the parameter `input_`.
1 parent 1f3b4d3 commit f5fdcb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/pyld/jsonld.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ def link(input_, ctx, options=None):
228228
"""
229229
# API matches running frame with a wildcard frame and embed: '@link'
230230
# get arguments
231-
frame = {'@embed': '@link'}
231+
frame_ = {'@embed': '@link'}
232232
if ctx:
233-
frame['@context'] = ctx
234-
frame['@embed'] = '@link'
235-
return frame(input, frame, options)
233+
frame_['@context'] = ctx
234+
frame_['@embed'] = '@link'
235+
return frame(input_, frame_, options)
236236

237237

238238
def normalize(input_, options=None):

0 commit comments

Comments
 (0)