python3: do not decode uuid4 hex, as it is always a str()

This commit is contained in:
Eli Schwartz 2019-03-26 13:13:46 -04:00
parent 9023ea8947
commit 4919373608
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

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