summaryrefslogtreecommitdiff
path: root/odoo/addons/base/module/wizard/base_export_language.py
diff options
context:
space:
mode:
authorxmo-odoo <xmo@odoo.com>2017-04-28 09:06:53 +0200
committerGitHub <noreply@github.com>2017-04-28 09:06:53 +0200
commitb4429c2a91889bf60b56e0c7909c844d357363f7 (patch)
tree1ae879a60a34454b4a93425f0ebe7d5ccd029c03 /odoo/addons/base/module/wizard/base_export_language.py
parentc5579ef89e2a595893d0959bef6fddfdbfb6d697 (diff)
[FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
Diffstat (limited to 'odoo/addons/base/module/wizard/base_export_language.py')
-rw-r--r--odoo/addons/base/module/wizard/base_export_language.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/addons/base/module/wizard/base_export_language.py b/odoo/addons/base/module/wizard/base_export_language.py
index cd19222af14..50c57bb870e 100644
--- a/odoo/addons/base/module/wizard/base_export_language.py
+++ b/odoo/addons/base/module/wizard/base_export_language.py
@@ -3,7 +3,7 @@
import base64
import contextlib
-import cStringIO
+import io
from odoo import api, fields, models, tools, _
@@ -34,7 +34,7 @@ class BaseLanguageExport(models.TransientModel):
lang = this.lang if this.lang != NEW_LANG_KEY else False
mods = sorted(this.mapped('modules.name')) or ['all']
- with contextlib.closing(cStringIO.StringIO()) as buf:
+ with contextlib.closing(io.BytesIO()) as buf:
tools.trans_export(lang, mods, buf, this.format, self._cr)
out = base64.encodestring(buf.getvalue())