Skip to content

Commit

Permalink
Deserialize single to delegate to deserialize many
Browse files Browse the repository at this point in the history
  • Loading branch information
faph committed Nov 9, 2023
1 parent aa03ab4 commit aeed85d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/py_adapter/plugin/_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ def deserialize(stream: BinaryIO) -> py_adapter.Basic:
:param stream: File-like object to deserialize
"""
import csv

text_stream = io.StringIO(stream.read().decode("utf-8"))
csv_reader = csv.DictReader(text_stream)
obj = next(csv_reader)
obj = next(deserialize_many(stream))
return obj


Expand Down

0 comments on commit aeed85d

Please sign in to comment.