From 719435c3d700280a8392384579594571295f12be Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Mon, 6 Oct 2014 13:55:06 +0200 Subject: [PATCH] Force absolute import --- weboob/tools/ordereddict.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/weboob/tools/ordereddict.py b/weboob/tools/ordereddict.py index 78b1f2da..269e4385 100644 --- a/weboob/tools/ordereddict.py +++ b/weboob/tools/ordereddict.py @@ -16,6 +16,9 @@ # # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . +from __future__ import absolute_import + +__all__ = ['OrderedDict'] try: @@ -27,7 +30,7 @@ except ImportError: try: from ordereddict import OrderedDict except ImportError: - ## {{{ http://code.activestate.com/recipes/576693/ (r6) + # {{{ http://code.activestate.com/recipes/576693/ (r6) from UserDict import DictMixin class OrderedDict(dict, DictMixin): @@ -127,4 +130,4 @@ except ImportError: def __ne__(self, other): return not self == other - ## end of http://code.activestate.com/recipes/576693/ }}} + # end of http://code.activestate.com/recipes/576693/ }}}