From 4b517acf389084c8305c37b002bd815b2bc21e03 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 5 May 2012 17:46:53 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/conversion/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/conversion/utils.py b/src/calibre/ebooks/conversion/utils.py index 4822eee6ae..ddeba79365 100644 --- a/src/calibre/ebooks/conversion/utils.py +++ b/src/calibre/ebooks/conversion/utils.py @@ -5,7 +5,7 @@ __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal ' __docformat__ = 'restructuredtext en' -import re, error as re_error +import re from math import ceil from calibre.ebooks.conversion.preprocess import DocAnalysis, Dehyphenator from calibre.utils.logging import default_log @@ -184,7 +184,7 @@ class HeuristicProcessor(object): except OverflowError: # match.group(0) was too large to be compiled into a regex continue - except re_error: + except re.error: # the match was not a valid regular expression continue