summaryrefslogtreecommitdiff
path: root/odoo/modules/module.py
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2017-08-31 10:49:39 +0200
committerChristophe Monniez <moc@odoo.com>2017-10-03 12:01:53 +0200
commitaaa30a74b5b67966f075e087675e19f7e540e0b6 (patch)
treef708a95d08e7cbf9ce38f0a906525ff2f629fcbe /odoo/modules/module.py
parent06c2346da5f871fe885e075152dfa41cb6f9b024 (diff)
[imp] module,http: open manifest files as utf-8 in a python2/3 compatible way
Diffstat (limited to 'odoo/modules/module.py')
-rw-r--r--odoo/modules/module.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/modules/module.py b/odoo/modules/module.py
index 586a43af69e..af2b28883c4 100644
--- a/odoo/modules/module.py
+++ b/odoo/modules/module.py
@@ -328,9 +328,9 @@ def load_information_from_description_file(module, mod_path=None):
'depends data demo test init_xml update_xml demo_xml'.split(),
iter(list, None)))
- f = tools.file_open(manifest_file)
+ f = tools.file_open(manifest_file, mode='rb')
try:
- info.update(ast.literal_eval(f.read()))
+ info.update(ast.literal_eval(pycompat.to_native(f.read())))
finally:
f.close()