Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit eb09150

Browse files
author
Dan Ballance
committed
Convert HALCodec.load to use kwargs for additional parameters.
1 parent 2a3df8f commit eb09150

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hal_codec/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,11 @@ def dump(self, document, indent=False, **kwargs):
214214
data = _document_to_primative(document)
215215
return force_bytes(json.dumps(data, **options))
216216

217-
def load(self, bytes, base_url=None):
217+
def load(self, bytes, **kwargs):
218218
"""
219219
Takes a bytestring and returns a document.
220220
"""
221+
base_url = kwargs.get('base_url', None)
221222
try:
222223
data = json.loads(bytes.decode('utf-8'))
223224
except ValueError as exc:

0 commit comments

Comments
 (0)