mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
PendingDeprecationWarning -> DeprecationWarning. Both of these were
properly documented as being deprecated in 3.1.
This commit is contained in:
parent
84ec8d9314
commit
aa3b5b8577
2 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ def splitunc(p):
|
||||||
"""
|
"""
|
||||||
import warnings
|
import warnings
|
||||||
warnings.warn("ntpath.splitunc is deprecated, use ntpath.splitdrive instead",
|
warnings.warn("ntpath.splitunc is deprecated, use ntpath.splitdrive instead",
|
||||||
PendingDeprecationWarning)
|
DeprecationWarning)
|
||||||
sep = _get_sep(p)
|
sep = _get_sep(p)
|
||||||
if not p[1:2]:
|
if not p[1:2]:
|
||||||
return p[:0], p # Drive letter present
|
return p[:0], p # Drive letter present
|
||||||
|
|
|
||||||
|
|
@ -680,7 +680,7 @@ class TestCase(object):
|
||||||
def deprecated_func(*args, **kwargs):
|
def deprecated_func(*args, **kwargs):
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
'Please use {0} instead.'.format(original_func.__name__),
|
'Please use {0} instead.'.format(original_func.__name__),
|
||||||
PendingDeprecationWarning, 2)
|
DeprecationWarning, 2)
|
||||||
return original_func(*args, **kwargs)
|
return original_func(*args, **kwargs)
|
||||||
return deprecated_func
|
return deprecated_func
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue