mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
python3: do not decode uuid4 hex, as it is always a str()
This commit is contained in:
parent
9023ea8947
commit
4919373608
@ -29,7 +29,7 @@ from calibre.utils.monotonic import monotonic
|
|||||||
from polyglot import http_client, reprlib
|
from polyglot import http_client, reprlib
|
||||||
|
|
||||||
Range = namedtuple('Range', 'start stop size')
|
Range = namedtuple('Range', 'start stop size')
|
||||||
MULTIPART_SEPARATOR = uuid.uuid4().hex.decode('ascii')
|
MULTIPART_SEPARATOR = uuid.uuid4().hex
|
||||||
COMPRESSIBLE_TYPES = {'application/json', 'application/javascript', 'application/xml', 'application/oebps-package+xml'}
|
COMPRESSIBLE_TYPES = {'application/json', 'application/javascript', 'application/xml', 'application/oebps-package+xml'}
|
||||||
if is_py3:
|
if is_py3:
|
||||||
import zlib
|
import zlib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user