From bcfa99cb1346925474f3de736a12c57eed9c8fbe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 Jun 2016 07:13:56 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index a0dbd1551d..867c9dd629 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -1240,7 +1240,7 @@ class InvalidMobi(InvalidBook): def do_explode(path, dest): from calibre.ebooks.mobi.reader.mobi6 import MobiReader from calibre.ebooks.mobi.reader.mobi8 import Mobi8Reader - with open(path, 'rb') as stream: + with lopen(path, 'rb') as stream: mr = MobiReader(stream, default_log, None, None) with CurrentDir(dest):