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

Commit 26131f3

Browse files
Merge pull request #9 from danballance/document-interface-update
Converted instantiation of Document object to use named parameters.
2 parents 2f87f28 + fe624bb commit 26131f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hal_codec/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import uritemplate
99

1010

11-
__version__ = "1.0.1"
11+
__version__ = "1.0.2"
1212

1313

1414
def _get_string(item, key):
@@ -187,7 +187,7 @@ def _parse_document(data, base_url=None):
187187
if key not in ('_embedded', '_links'):
188188
content[key] = value
189189

190-
return Document(url, title, content)
190+
return Document(url=url, title=title, content=content)
191191

192192

193193
class HALCodec(BaseCodec):

0 commit comments

Comments
 (0)