Skip to content

Commit

Permalink
don't use encoding on binary data in ModelDict
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Nov 21, 2023
1 parent 7df71b2 commit 720fcd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rail/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ class ModelDict(dict):

def open(self, path, mode, **kwargs):
"""Open the file and return the file handle"""
encoding = kwargs.pop('encoding', "utf-8")
return open(path, mode, encoding=encoding, **kwargs)
return open(path, mode, **kwargs) # pylint: disable=unspecified-encoding

def read(
self, path, force=False, reader=None, **kwargs
Expand Down

0 comments on commit 720fcd9

Please sign in to comment.