diff options
| author | Stephane Wirtel <stephane@tinyerp.com> | 2009-01-05 22:02:40 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@tinyerp.com> | 2009-01-05 22:02:40 +0100 |
| commit | c5923d87f2b087e54b759c920cdbea041e8ab3ba (patch) | |
| tree | 1a8ab901905eaa942ca7952414bd9bc659b71719 /bin/addons/base/module/wizard/wizard_export_lang.py | |
| parent | 7fdf5188af68dda4e81f82cb348e1c5cdb30797e (diff) | |
[IMP] Use cStringIO
bzr revid: stephane@tinyerp.com-20090105210240-nkg2vm08dwhz2xtq
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_export_lang.py')
| -rw-r--r-- | bin/addons/base/module/wizard/wizard_export_lang.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/addons/base/module/wizard/wizard_export_lang.py b/bin/addons/base/module/wizard/wizard_export_lang.py index 718464a5c76..e4ed0523b92 100644 --- a/bin/addons/base/module/wizard/wizard_export_lang.py +++ b/bin/addons/base/module/wizard/wizard_export_lang.py @@ -23,7 +23,7 @@ import wizard import tools import base64 -import StringIO +import cStringIO import csv import pooler from osv import fields,osv @@ -49,7 +49,7 @@ class wizard_export_lang(osv.osv_memory): this = self.browse(cr, uid, ids)[0] mods = map(lambda m: m.name, this.modules) or ['all'] mods.sort() - buf=StringIO.StringIO() + buf=cStringIO.StringIO() tools.trans_export(this.lang, mods, buf, this.format, dbname=cr.dbname) if this.format == 'csv': this.advice = _("Save this document to a .CSV file and open it with your favourite spreadsheet software. The file encoding is UTF-8. You have to translate the latest column before reimporting it.") |
