Use absolute import to import locale

Since locale folder has been created with the translations, Python3 tests
failed because 2to3 converts the import of locale into a relative import
because it detects the locale folder.
This commit is contained in:
Cédric Krier committed 2016-11-26 13:19:38 +01:00
1 parent 4d73e14396
commit 381c49ea1f
2 files changed
+3

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from __future__ import absolute_import
import locale
from zeep.exceptions import Fault
+1
View File
@@ -1,5 +1,6 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from __future__ import absolute_import
import locale
from io import BytesIO