[Scipy-svn] r6898 - trunk/scipy/constants

scipy-svn@scip... scipy-svn@scip...
Sun Nov 14 15:02:56 CST 2010


Author: warren.weckesser
Date: 2010-11-14 15:02:56 -0600 (Sun, 14 Nov 2010)
New Revision: 6898

Modified:
   trunk/scipy/constants/codata.py
Log:
DEP: constants: Change the default value of the 'disp' argument of the 'find' function to False (see the 0.8.0 release notes).

Modified: trunk/scipy/constants/codata.py
===================================================================
--- trunk/scipy/constants/codata.py	2010-11-14 20:52:47 UTC (rev 6897)
+++ trunk/scipy/constants/codata.py	2010-11-14 21:02:56 UTC (rev 6898)
@@ -24,8 +24,6 @@
 
 """
 
-import warnings
-import string
 from math import pi, sqrt
 __all__ = ['physical_constants', 'value', 'unit', 'precision', 'find']
 
@@ -467,15 +465,10 @@
     """
     return physical_constants[key][2] / physical_constants[key][0]
 
-def find(sub=None, disp=True) :
+def find(sub=None, disp=False):
     """
     Return list of codata.physical_constant keys containing a given string
 
-    Deprecation Warning
-    -------------------
-    In Scipy version 0.8.0, the keyword argument 'disp' was added to find(),
-    with the default value True.  In 0.9.0, the default will be False.
-
     Parameters
     ----------
     sub : str, unicode
@@ -496,9 +489,6 @@
         dictionary literal object, does not itself possess a docstring.
 
     """
-    warnings.warn("In Scipy version 0.8.0, the keyword argument 'disp' was added to "
-                  "find(), with the default value True.  In 0.9.0, the default will be False.",
-                  DeprecationWarning)
     if sub is None:
         result = physical_constants.keys()
     else:



More information about the Scipy-svn mailing list