diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-08-14 16:48:10 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-08-14 16:48:10 +0200 |
| commit | 140ee6b8f0b0de7ddcc816496269963612c5d0c6 (patch) | |
| tree | 7bdaa065d215b88fea4fa56adbfa79cdc24deb69 /addons/web/controllers/main.py | |
| parent | 839696d2d7dd574fd8958d17726379926e94d590 (diff) | |
| parent | 98a55917a602c0c47093b4270ebc4e8b416ecf32 (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.py | 6 |
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 |
