From 86ee7264fd9e1cfb675a69786d395768aa02d3f2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 16 Sep 2011 17:17:55 -0600 Subject: [PATCH] Fix #852244 (0.8.19 HTML Conversion Error) --- src/calibre/ebooks/html/input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/html/input.py b/src/calibre/ebooks/html/input.py index 4ebf344a2a..3de116c411 100644 --- a/src/calibre/ebooks/html/input.py +++ b/src/calibre/ebooks/html/input.py @@ -11,7 +11,7 @@ __docformat__ = 'restructuredtext en' Input plugin for HTML or OPF ebooks. ''' -import os, re, sys, uuid, tempfile +import os, re, sys, uuid, tempfile, errno as gerrno from urlparse import urlparse, urlunparse from urllib import unquote from functools import partial @@ -75,7 +75,7 @@ class IgnoreFile(Exception): def __init__(self, msg, errno): Exception.__init__(self, msg) - self.doesnt_exist = errno == errno.ENOENT + self.doesnt_exist = errno == gerrno.ENOENT self.errno = errno class HTMLFile(object):