summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-07-04 12:28:45 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-07-04 12:28:45 (GMT)
commitb575289292902bb078dbd128a90da642c27d4ad6 (patch)
tree5ce3f8e9190e05d673d31b0ae9224ad6d10f02bc /Lib
parent99b9538636e44f2400b45a4b9fa3d74ccb958922 (diff)
downloadcpython-b575289292902bb078dbd128a90da642c27d4ad6.zip
cpython-b575289292902bb078dbd128a90da642c27d4ad6.tar.gz
cpython-b575289292902bb078dbd128a90da642c27d4ad6.tar.bz2
Issue #12452: Plist and Dict are now deprecated
Replace PendingDeprecationWarning warnings by DeprecationWarning.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/plistlib.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/plistlib.py b/Lib/plistlib.py
index 2e7e512..21076db 100644
--- a/Lib/plistlib.py
+++ b/Lib/plistlib.py
@@ -266,13 +266,13 @@ class _InternalDict(dict):
raise AttributeError(attr)
from warnings import warn
warn("Attribute access from plist dicts is deprecated, use d[key] "
- "notation instead", PendingDeprecationWarning, 2)
+ "notation instead", DeprecationWarning, 2)
return value
def __setattr__(self, attr, value):
from warnings import warn
warn("Attribute access from plist dicts is deprecated, use d[key] "
- "notation instead", PendingDeprecationWarning, 2)
+ "notation instead", DeprecationWarning, 2)
self[attr] = value
def __delattr__(self, attr):
@@ -282,14 +282,14 @@ class _InternalDict(dict):
raise AttributeError(attr)
from warnings import warn
warn("Attribute access from plist dicts is deprecated, use d[key] "
- "notation instead", PendingDeprecationWarning, 2)
+ "notation instead", DeprecationWarning, 2)
class Dict(_InternalDict):
def __init__(self, **kwargs):
from warnings import warn
warn("The plistlib.Dict class is deprecated, use builtin dict instead",
- PendingDeprecationWarning, 2)
+ DeprecationWarning, 2)
super().__init__(**kwargs)
@@ -302,7 +302,7 @@ class Plist(_InternalDict):
def __init__(self, **kwargs):
from warnings import warn
warn("The Plist class is deprecated, use the readPlist() and "
- "writePlist() functions instead", PendingDeprecationWarning, 2)
+ "writePlist() functions instead", DeprecationWarning, 2)
super().__init__(**kwargs)
def fromFile(cls, pathOrFile):