misc: use binary file for storage (#36515)

This commit is contained in:
Frédéric Péters 2019-11-12 13:55:12 +01:00
parent 1346c90386
commit 4fced111d6
1 changed files with 1 additions and 1 deletions

View File

@ -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: