From ca768b0b95045c405472604d2367b834bb0d1a76 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Wed, 21 Aug 2013 00:59:37 +0200 Subject: [PATCH] Remove unnecessary import of Warning. --- doc/examples/plot_line_hough_transform.py | 2 +- skimage/__init__.py | 4 +--- skimage/_shared/utils.py | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/examples/plot_line_hough_transform.py b/doc/examples/plot_line_hough_transform.py index e19c37d7..cd0ae008 100644 --- a/doc/examples/plot_line_hough_transform.py +++ b/doc/examples/plot_line_hough_transform.py @@ -1,4 +1,4 @@ -""" +r""" ============================= Straight line Hough transform ============================= diff --git a/skimage/__init__.py b/skimage/__init__.py index 23e5d3a7..53d31eae 100644 --- a/skimage/__init__.py +++ b/skimage/__init__.py @@ -88,9 +88,7 @@ test_verbose = _functools.partial(test, verbose=True) test_verbose.__doc__ = test.__doc__ -from exceptions import Warning as _Warning - -class _Log(_Warning): +class _Log(Warning): pass class _FakeLog(object): diff --git a/skimage/_shared/utils.py b/skimage/_shared/utils.py index 18cd25c9..0909b232 100644 --- a/skimage/_shared/utils.py +++ b/skimage/_shared/utils.py @@ -1,7 +1,6 @@ import warnings import functools import sys -from exceptions import Warning from . import six