mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -142,7 +142,7 @@ class SNBOutput(OutputFormatPlugin):
|
||||
|
||||
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…
x
Reference in New Issue
Block a user