mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-31 01:13:32 +02:00
Removed check for python version
This commit is contained in:
@@ -8,7 +8,6 @@ from ebook_converter import force_unicode
|
||||
from ebook_converter.constants import filesystem_encoding
|
||||
from ebook_converter.constants import get_windows_username
|
||||
from ebook_converter.constants import islinux
|
||||
from ebook_converter.constants import ispy3
|
||||
from ebook_converter.constants import iswindows
|
||||
from ebook_converter.utils.filenames import ascii_filename
|
||||
|
||||
@@ -51,8 +50,6 @@ def socket_address(which):
|
||||
from tempfile import gettempdir
|
||||
tmp = force_unicode(gettempdir(), filesystem_encoding)
|
||||
ans = os.path.join(tmp, sock_name)
|
||||
if not ispy3 and not isinstance(ans, bytes):
|
||||
ans = ans.encode(filesystem_encoding)
|
||||
return ans
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user