@@ -316,7 +316,7 @@ def __init__(self, source=None, filename=None):
316
316
def filename (self ):
317
317
"""Deprecated, use `source'."""
318
318
warnings .warn (
319
- "The 'filename' attribute will be removed in future versions. "
319
+ "The 'filename' attribute will be removed in Python 3.12. "
320
320
"Use 'source' instead." ,
321
321
DeprecationWarning , stacklevel = 2
322
322
)
@@ -326,7 +326,7 @@ def filename(self):
326
326
def filename (self , value ):
327
327
"""Deprecated, user `source'."""
328
328
warnings .warn (
329
- "The 'filename' attribute will be removed in future versions. "
329
+ "The 'filename' attribute will be removed in Python 3.12. "
330
330
"Use 'source' instead." ,
331
331
DeprecationWarning , stacklevel = 2
332
332
)
@@ -757,7 +757,7 @@ def read_dict(self, dictionary, source='<dict>'):
757
757
def readfp (self , fp , filename = None ):
758
758
"""Deprecated, use read_file instead."""
759
759
warnings .warn (
760
- "This method will be removed in future versions. "
760
+ "This method will be removed in Python 3.12. "
761
761
"Use 'parser.read_file()' instead." ,
762
762
DeprecationWarning , stacklevel = 2
763
763
)
@@ -1232,7 +1232,7 @@ def __init__(self, *args, **kwargs):
1232
1232
super ().__init__ (* args , ** kwargs )
1233
1233
warnings .warn (
1234
1234
"The SafeConfigParser class has been renamed to ConfigParser "
1235
- "in Python 3.2. This alias will be removed in future versions ."
1235
+ "in Python 3.2. This alias will be removed in Python 3.12 ."
1236
1236
" Use ConfigParser directly instead." ,
1237
1237
DeprecationWarning , stacklevel = 2
1238
1238
)
0 commit comments