From 683ecde2e10408b0fd25c76bf555899fa59b53f9 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sat, 12 Dec 2015 20:27:21 -0600 Subject: [PATCH] Start deprecation of python 2.6 --- TODO.txt | 1 + skimage/__init__.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/TODO.txt b/TODO.txt index 02bd9ead..3f73ebdb 100644 --- a/TODO.txt +++ b/TODO.txt @@ -16,6 +16,7 @@ Version 0.14 Version 0.13 ------------ +* Require Python 2.7+, remove warning in `__init__.py`. * Remove deprecated `None` defaults for `skimage.exposure.rescale_intensity` * Remove deprecated `skimage.filters.canny` import in `filters/__init__.py` file (canny is now in `skimage.feature.canny`). diff --git a/skimage/__init__.py b/skimage/__init__.py index 2b152156..673562a7 100644 --- a/skimage/__init__.py +++ b/skimage/__init__.py @@ -156,4 +156,9 @@ else: _raise_build_error(e) from .util.dtype import * + +if sys.version.startswith('2.6'): + warnings.warn("Python 2.6 is deprecated and will not be supported in scikit-image 0.13+") + + del warnings, functools, osp, imp, sys