From eb1adb69dec87551c6346dd050818f02e9d50a13 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Jun 2016 18:12:39 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index e9b97a9e4d..69fcac9712 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -522,7 +522,7 @@ class DirContainer(object): if path is None: path = self.opfname path = os.path.join(self.rootdir, self._unquote(path)) - with open(path, 'rb') as f: + with lopen(path, 'rb') as f: return f.read() def write(self, path, data): @@ -530,7 +530,7 @@ class DirContainer(object): dir = os.path.dirname(path) if not os.path.isdir(dir): os.makedirs(dir) - with open(path, 'wb') as f: + with lopen(path, 'wb') as f: return f.write(data) def exists(self, path):