From: Gregory P. Smith Date: Tue, 30 Jun 2009 05:33:50 +0000 (+0000) Subject: PendingDeprecationWarning -> DeprecationWarning. Both of these were X-Git-Tag: v3.2a1~2933 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa3b5b857791052e4e22a137f8315992c389f6f4;p=python PendingDeprecationWarning -> DeprecationWarning. Both of these were properly documented as being deprecated in 3.1. --- diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 2fd26b1f3d..d16b6646ee 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -233,7 +233,7 @@ def splitunc(p): """ import warnings warnings.warn("ntpath.splitunc is deprecated, use ntpath.splitdrive instead", - PendingDeprecationWarning) + DeprecationWarning) sep = _get_sep(p) if not p[1:2]: return p[:0], p # Drive letter present diff --git a/Lib/unittest.py b/Lib/unittest.py index ce990b7851..611088bb4e 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -680,7 +680,7 @@ class TestCase(object): def deprecated_func(*args, **kwargs): warnings.warn( 'Please use {0} instead.'.format(original_func.__name__), - PendingDeprecationWarning, 2) + DeprecationWarning, 2) return original_func(*args, **kwargs) return deprecated_func