py3: more fixes for snb output

string.split is deprecated, use native functions on the original string
itself.
This commit is contained in:
Eli Schwartz 2019-05-19 14:30:12 -04:00
parent 4bbc8df3ab
commit 8e368c0d46
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

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