commit | aa3b5b857791052e4e22a137f8315992c389f6f4 | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@mad-scientist.com> | Tue Jun 30 05:33:50 2009 +0000 |
committer | Gregory P. Smith <greg@mad-scientist.com> | Tue Jun 30 05:33:50 2009 +0000 |
tree | d0f4321a2311b34bb3c090b25a12715f592f5c2a | |
parent | 84ec8d931404f4f9037242ec933fdcdcd4870114 [diff] [blame] |
PendingDeprecationWarning -> DeprecationWarning. Both of these were properly documented as being deprecated in 3.1.
diff --git a/Lib/unittest.py b/Lib/unittest.py index ce990b7..611088b 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py
@@ -680,7 +680,7 @@ 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