summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-08-14 16:48:10 +0200
committerChristophe Simonis <chs@odoo.com>2019-08-14 16:48:10 +0200
commit140ee6b8f0b0de7ddcc816496269963612c5d0c6 (patch)
tree7bdaa065d215b88fea4fa56adbfa79cdc24deb69 /addons/web/controllers/main.py
parent839696d2d7dd574fd8958d17726379926e94d590 (diff)
parent98a55917a602c0c47093b4270ebc4e8b416ecf32 (diff)
[MERGE] forward port branch saas-12.4 up to 98a55917a60
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 10e350fbd0a..591849a8bc0 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -565,11 +565,11 @@ class HomeStaticTemplateHelpers(object):
key: addon name
value: list of files for an addon
:returns: (concatenation_result, checksum)
- :rtype: (str, str)
+ :rtype: (bytes, str)
"""
checksum = hashlib.new('sha1')
if not file_dict:
- return '', checksum.hexdigest()
+ return b'', checksum.hexdigest()
root = None
for addon, fnames in file_dict.items():
@@ -586,7 +586,7 @@ class HomeStaticTemplateHelpers(object):
for template in addon.values():
root.append(template)
- return etree.tostring(root, encoding='utf-8') if root is not None else '', checksum.hexdigest()
+ return etree.tostring(root, encoding='utf-8') if root is not None else b'', checksum.hexdigest()
def _get_qweb_templates(self):
"""One and only entry point that gets and evaluates static qweb templates