From 381c49ea1f7b0dee14e9707f422b24fff0fac00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 26 Nov 2016 13:19:38 +0100 Subject: [PATCH] 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. --- carrier.py | 2 ++ stock.py | 1 + 2 files changed, 3 insertions(+) diff --git a/carrier.py b/carrier.py index b2192ce817..2d87551d99 100644 --- a/carrier.py +++ b/carrier.py @@ -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 diff --git a/stock.py b/stock.py index 1592cbb29f..5ae371fad3 100644 --- a/stock.py +++ b/stock.py @@ -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