Fix #852244 (0.8.19 HTML Conversion Error)

This commit is contained in:
Kovid Goyal 2011-09-16 17:17:55 -06:00
parent 7b8b66cc89
commit 86ee7264fd

View File

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