From 1d9996680418420fef6a2dc83e5e9c8945a35794 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Mon, 1 Sep 2014 17:16:13 +0100 Subject: [PATCH] Remove leftovers of old logger --- skimage/__init__.py | 49 --------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/skimage/__init__.py b/skimage/__init__.py index d1f98ff7..da7c983c 100644 --- a/skimage/__init__.py +++ b/skimage/__init__.py @@ -120,53 +120,4 @@ doctest.__doc__ = doctest.__doc__ doctest_verbose = _functools.partial(test, doctest=True, verbose=True) doctest_verbose.__doc__ = doctest.__doc__ - -class _Log(Warning): - pass - - -class _FakeLog(object): - def __init__(self, name): - """ - Parameters - ---------- - name : str - Name of the log. - repeat : bool - Whether to print repeating messages more than once (False by - default). - """ - self._name = name - - warnings.simplefilter("always", _Log) - - self._warnings = _warnings - - def _warn(self, msg, wtype): - self._warnings.warn('%s: %s' % (wtype, msg), _Log) - - def debug(self, msg): - self._warn(msg, 'DEBUG') - - def info(self, msg): - self._warn(msg, 'INFO') - - def warning(self, msg): - self._warn(msg, 'WARNING') - - warn = warning - - def error(self, msg): - self._warn(msg, 'ERROR') - - def critical(self, msg): - self._warn(msg, 'CRITICAL') - - def addHandler(*args): - pass - - def setLevel(*args): - pass - - from .util.dtype import *