diff --git a/hal_codec/__init__.py b/hal_codec/__init__.py index 034e8c0..35a3bae 100644 --- a/hal_codec/__init__.py +++ b/hal_codec/__init__.py @@ -8,7 +8,7 @@ import uritemplate -__version__ = "1.0.0" +__version__ = "1.0.1" def _get_string(item, key): @@ -214,10 +214,11 @@ def dump(self, document, indent=False, **kwargs): data = _document_to_primative(document) return force_bytes(json.dumps(data, **options)) - def load(self, bytes, base_url=None): + def load(self, bytes, **kwargs): """ Takes a bytestring and returns a document. """ + base_url = kwargs.get('base_url', None) try: data = json.loads(bytes.decode('utf-8')) except ValueError as exc: