Skip to content

Commit

Permalink
FIX stop forcing deprecation warnings for external packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Nov 28, 2013
1 parent 80b96bc commit 9e1edd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions sklearn/__init__.py
Expand Up @@ -13,8 +13,14 @@
See http://scikit-learn.org for complete documentation.
"""
import sys
import re
import warnings
__version__ = '0.15-git'

# Make sure that DeprecationWarning within this package always gets printed
warnings.filterwarnings('always', category=DeprecationWarning,
module='^{}\.'.format(re.escape(__name__)))

try:
# This variable is injected in the __builtins__ by the build
# process. It used to enable importing subpackages of sklearn when
Expand Down
4 changes: 0 additions & 4 deletions sklearn/utils/__init__.py
Expand Up @@ -23,10 +23,6 @@
"compute_class_weight", "minimum_spanning_tree", "column_or_1d"]


# Make sure that DeprecationWarning get printed
warnings.simplefilter("always", DeprecationWarning)


class deprecated(object):
"""Decorator to mark a function or class as deprecated.
Expand Down

0 comments on commit 9e1edd1

Please sign in to comment.