mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 08:54:08 +02:00
py3: more fixes for snb output
string.split is deprecated, use native functions on the original string itself.
This commit is contained in:
parent
4bbc8df3ab
commit
8e368c0d46
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
|||
|
||||
for tocitem in oeb_book.toc:
|
||||
if tocitem.href.find('#') != -1:
|
||||
item = string.split(tocitem.href, '#')
|
||||
item = tocitem.href.split('#')
|
||||
if len(item) != 2:
|
||||
log.error('Error in TOC item: %s' % tocitem)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue