From b7641adebab47ebb98c9ff75592331c854d21053 Mon Sep 17 00:00:00 2001 From: Shay Palachy Date: Tue, 25 Apr 2017 00:29:39 +0300 Subject: [PATCH] import from future correctly now --- cachier/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cachier/core.py b/cachier/core.py index cb7afc2..820a2cb 100644 --- a/cachier/core.py +++ b/cachier/core.py @@ -7,6 +7,11 @@ # http://www.opensource.org/licenses/MIT-license # Copyright (c) 2016, Shay Palachy +# python 2 compatibility +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function + import os from functools import wraps @@ -23,7 +28,6 @@ except ImportError: # we're in python 2.x if 'futures' not in PACKAGES: pip.main(['install', 'futures']) from concurrent.futures import ThreadPoolExecutor - from __future__ import print_function from .pickle_core import _PickleCore from .mongo_core import _MongoCore