@@ -263,13 +263,13 @@ def __getattr__(self, attr):
263263 raise AttributeError (attr )
264264 from warnings import warn
265265 warn ("Attribute access from plist dicts is deprecated, use d[key] "
266- "notation instead" , PendingDeprecationWarning )
266+ "notation instead" , PendingDeprecationWarning , 2 )
267267 return value
268268
269269 def __setattr__ (self , attr , value ):
270270 from warnings import warn
271271 warn ("Attribute access from plist dicts is deprecated, use d[key] "
272- "notation instead" , PendingDeprecationWarning )
272+ "notation instead" , PendingDeprecationWarning , 2 )
273273 self [attr ] = value
274274
275275 def __delattr__ (self , attr ):
@@ -279,14 +279,14 @@ def __delattr__(self, attr):
279279 raise AttributeError (attr )
280280 from warnings import warn
281281 warn ("Attribute access from plist dicts is deprecated, use d[key] "
282- "notation instead" , PendingDeprecationWarning )
282+ "notation instead" , PendingDeprecationWarning , 2 )
283283
284284class Dict (_InternalDict ):
285285
286286 def __init__ (self , ** kwargs ):
287287 from warnings import warn
288288 warn ("The plistlib.Dict class is deprecated, use builtin dict instead" ,
289- PendingDeprecationWarning )
289+ PendingDeprecationWarning , 2 )
290290 super ().__init__ (** kwargs )
291291
292292
@@ -299,7 +299,7 @@ class Plist(_InternalDict):
299299 def __init__ (self , ** kwargs ):
300300 from warnings import warn
301301 warn ("The Plist class is deprecated, use the readPlist() and "
302- "writePlist() functions instead" , PendingDeprecationWarning )
302+ "writePlist() functions instead" , PendingDeprecationWarning , 2 )
303303 super ().__init__ (** kwargs )
304304
305305 def fromFile (cls , pathOrFile ):
0 commit comments