1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-29 08:03:31 +02:00

Removed check for python version

This commit is contained in:
2020-04-21 21:06:48 +02:00
parent 3234e4de27
commit de4f8a444b
21 changed files with 54 additions and 246 deletions

View File

@@ -5,7 +5,6 @@ from struct import unpack, error
import os
from ebook_converter.utils.speedups import ReadOnlyFileBuffer
from ebook_converter.constants import ispy3
HSIZE = 120
@@ -122,12 +121,8 @@ def jpeg_dimensions(stream):
raise ValueError('Truncated JPEG data')
return ans
if ispy3:
def read_byte():
return read(1)[0]
else:
def read_byte():
return ord(read(1)[0])
def read_byte():
return read(1)[0]
x = None
while True: