mirror of
https://github.com/wassname/cachier.git
synced 2026-09-09 11:19:08 +08:00
import from future correctly now
This commit is contained in:
+5
-1
@@ -7,6 +7,11 @@
|
||||
# http://www.opensource.org/licenses/MIT-license
|
||||
# Copyright (c) 2016, Shay Palachy <shaypal5@gmail.com>
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user