From caee35b8f61d335ea6df18a394328c2f4ede6b16 Mon Sep 17 00:00:00 2001 From: Erin O'Connell Date: Tue, 5 Sep 2017 22:39:51 -0600 Subject: [PATCH] added conditional import statement dependent on python version --- pipenv/vendor/background.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pipenv/vendor/background.py b/pipenv/vendor/background.py index fca0573a..acd90ffd 100644 --- a/pipenv/vendor/background.py +++ b/pipenv/vendor/background.py @@ -1,8 +1,13 @@ #!/usr/bin/env python # -*- coding:utf-8 -*- +import sys import multiprocessing -import concurrent.futures + +if sys.version_info.major < 3: + import concurrent3.futures as concurrent +else: + import concurrent27.futures as concurrent def default_n():