Skip to content

Commit

Permalink
#168 - Experimental JSON CAS support
Browse files Browse the repository at this point in the history
- Better test if using a TextIOWrapper is really necessary
  • Loading branch information
reckart committed Sep 20, 2021
1 parent 95da404 commit c3c8e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cassis/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def serialize(
json_fs = self._serialize_feature_structure(fs)
feature_structures.append(json_fs)

if not isinstance(sink, TextIOBase):
if sink and not isinstance(sink, TextIOBase):
sink = TextIOWrapper(sink, encoding="utf-8", write_through=True)

if sink:
Expand Down

0 comments on commit c3c8e58

Please sign in to comment.