Skip to content

Commit 096e4ee

Browse files
committed
V1 loads: give all kwargs to load
1 parent 90100a1 commit 096e4ee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

javaobj/v1/core.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,11 @@ def loads(string, *transformers, **kwargs):
108108
trailing bytes are remaining
109109
:return: The deserialized object
110110
"""
111-
# Read keyword argument
112-
ignore_remaining_data = kwargs.get("ignore_remaining_data", False)
113-
114111
# Reuse the load method (avoid code duplication)
115112
return load(
116113
BytesIO(string),
117114
*transformers,
118-
ignore_remaining_data=ignore_remaining_data
115+
**kwargs
119116
)
120117

121118

0 commit comments

Comments
 (0)