diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-10-15 16:29:23 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-10-15 17:27:03 -0600 |
commit | c2c7051d926b6ce0665e53ce8dd0f522380a57d6 (patch) | |
tree | d85a487a154e1a20333a5638c0953256615c40ac /numpy/lib/utils.py | |
parent | 727655193aa9b4d4068650a3f8a9b49a6a2e0cb4 (diff) | |
download | numpy-c2c7051d926b6ce0665e53ce8dd0f522380a57d6.tar.gz |
DEP: Deprecate SafeEval class.
The class is no longer used in numpy and was never exported.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r-- | numpy/lib/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py index 267653025..519d0e9b9 100644 --- a/numpy/lib/utils.py +++ b/numpy/lib/utils.py @@ -4,6 +4,7 @@ import os import sys import types import re +import warnings from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype from numpy.core import ndarray, ufunc, asarray @@ -1002,11 +1003,16 @@ class SafeEval(object): This includes strings with lists, dicts and tuples using the abstract syntax tree created by ``compiler.parse``. + .. deprecated:: 1.10.0 + See Also -------- safe_eval """ + def __init__(self): + warnings.warn("SafeEval is deprecated in 1.10 and will be removed.", + DeprecationWarning) def visit(self, node): cls = node.__class__ |