From 491937360891d60b820a0d7e05aaa3bd25811e95 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 26 Mar 2019 13:13:46 -0400 Subject: [PATCH] python3: do not decode uuid4 hex, as it is always a str() --- src/calibre/srv/http_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/http_response.py b/src/calibre/srv/http_response.py index b5b16fbe8f..8313d18e32 100644 --- a/src/calibre/srv/http_response.py +++ b/src/calibre/srv/http_response.py @@ -29,7 +29,7 @@ from calibre.utils.monotonic import monotonic from polyglot import http_client, reprlib 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'} if is_py3: import zlib