misc: use binary file for storage (#36515)
This commit is contained in:
parent
1346c90386
commit
4fced111d6
|
@ -385,7 +385,7 @@ class StorableObject(object):
|
|||
@classmethod
|
||||
def get_filename(cls, filename, ignore_errors=False, ignore_migration=False, **kwargs):
|
||||
try:
|
||||
fd = open(filename)
|
||||
fd = open(filename, 'rb')
|
||||
o = cls.storage_load(fd, **kwargs)
|
||||
except IOError:
|
||||
if ignore_errors:
|
||||
|
|
Loading…
Reference in New Issue