mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-04 06:06:09 +01:00
Remove the test guard for index conversion
This commit is contained in:
parent
58fee2de0e
commit
591d2b769b
1 changed files with 1 additions and 6 deletions
|
|
@ -6,11 +6,10 @@
|
|||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
import re, os
|
||||
import re
|
||||
|
||||
from calibre.ebooks.docx.index import process_index
|
||||
from calibre.ebooks.docx.names import XPath, get, namespaces
|
||||
TEST_INDEX = 'CALIBRE_TEST_INDEX' in os.environ
|
||||
|
||||
class Field(object):
|
||||
|
||||
|
|
@ -156,8 +155,6 @@ def parse_hyperlink(self, field, parse_func, log):
|
|||
|
||||
def parse_xe(self, field, parse_func, log):
|
||||
# Parse XE fields
|
||||
if not TEST_INDEX:
|
||||
return
|
||||
if None in (field.start, field.end):
|
||||
return
|
||||
xe = parse_func(field.instructions, log)
|
||||
|
|
@ -178,8 +175,6 @@ def parse_xe(self, field, parse_func, log):
|
|||
self.xe_fields.append(xe)
|
||||
|
||||
def parse_index(self, field, parse_func, log):
|
||||
if not TEST_INDEX:
|
||||
return
|
||||
if not field.contents:
|
||||
return
|
||||
idx = parse_func(field.instructions, log)
|
||||
|
|
|
|||
Loading…
Reference in a new issue