diff options
Diffstat (limited to 'tasks/_compat_shutil.py')
-rw-r--r-- | tasks/_compat_shutil.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tasks/_compat_shutil.py b/tasks/_compat_shutil.py new file mode 100644 index 0000000..69f3498 --- /dev/null +++ b/tasks/_compat_shutil.py @@ -0,0 +1,8 @@ +# -*- coding: UTF-8 -*- +# pylint: disable=unused-import +# PYTHON VERSION COMPATIBILITY HELPER + +try: + from shutil import which # -- SINCE: Python 3.3 +except ImportError: + from backports.shutil_which import which |