mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-15 22:23:42 +01:00
Removed isbytestring function
This commit is contained in:
@@ -14,8 +14,7 @@ from ebook_converter.ebooks.conversion.preprocess import HTMLPreProcessor
|
||||
from ebook_converter.ptempfile import PersistentTemporaryDirectory
|
||||
from ebook_converter.utils.date import parse_date
|
||||
from ebook_converter.utils.zipfile import ZipFile
|
||||
from ebook_converter import (extract, walk, isbytestring, filesystem_encoding,
|
||||
get_types_map)
|
||||
from ebook_converter import extract, walk, filesystem_encoding, get_types_map
|
||||
from ebook_converter.constants_old import __version__
|
||||
|
||||
|
||||
@@ -88,9 +87,9 @@ class Plumber(object):
|
||||
:param input: Path to input file.
|
||||
:param output: Path to output file/directory
|
||||
'''
|
||||
if isbytestring(input):
|
||||
if isinstance(input, bytes):
|
||||
input = input.decode(filesystem_encoding)
|
||||
if isbytestring(output):
|
||||
if isinstance(output, bytes):
|
||||
output = output.decode(filesystem_encoding)
|
||||
self.original_input_arg = input
|
||||
self.for_regex_wizard = for_regex_wizard
|
||||
|
||||
Reference in New Issue
Block a user