From 071a7c6d5d0fc553e31950ec0f675afee7dd913c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Tudur=C3=AD?= Date: Wed, 10 Feb 2016 12:05:34 +0100 Subject: [PATCH] Fix bug with absolute_imports in Python 2. Fixed using from __future__ import absolute_import trick. --- kaneda/backends/elasticsearch.py | 2 ++ kaneda/backends/mongodb.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/kaneda/backends/elasticsearch.py b/kaneda/backends/elasticsearch.py index 12e5a66..4352b40 100644 --- a/kaneda/backends/elasticsearch.py +++ b/kaneda/backends/elasticsearch.py @@ -1,3 +1,5 @@ +from __future__ import absolute_import + from datetime import datetime try: diff --git a/kaneda/backends/mongodb.py b/kaneda/backends/mongodb.py index 5bc1100..d0ac468 100644 --- a/kaneda/backends/mongodb.py +++ b/kaneda/backends/mongodb.py @@ -1,3 +1,5 @@ +from __future__ import absolute_import + from datetime import datetime try: