Force absolute import

This commit is contained in:
Laurent Bachelier 2014-10-06 13:55:06 +02:00
commit 719435c3d7

View file

@ -16,6 +16,9 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
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/ }}}