File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ def parse_platforms(self):
179
179
if unknown :
180
180
cls = type (self )
181
181
logger = logging .getLogger (cls .__qualname__ )
182
- logger .warn (
182
+ logger .warning (
183
183
f"Unknown platform(s) or syntax '{ ' ' .join (sorted (unknown ))} ' "
184
184
f"in '.. availability:: { self .arguments [0 ]} ', see "
185
185
f"{ __file__ } :{ cls .__qualname__ } .known_platforms for a set "
@@ -266,7 +266,7 @@ def run(self):
266
266
info = env .all_audit_events .setdefault (name , new_info )
267
267
if info is not new_info :
268
268
if not self ._do_args_match (info ['args' ], new_info ['args' ]):
269
- self .logger .warn (
269
+ self .logger .warning (
270
270
"Mismatched arguments for audit-event {}: {!r} != {!r}"
271
271
.format (name , info ['args' ], new_info ['args' ])
272
272
)
@@ -542,7 +542,7 @@ def write(self, *ignored):
542
542
'building topics... ' ,
543
543
length = len (pydoc_topic_labels )):
544
544
if label not in self .env .domaindata ['std' ]['labels' ]:
545
- self .env .logger .warn ( 'label %r not in documentation' % label )
545
+ self .env .logger .warning ( f 'label { label !r } not in documentation' )
546
546
continue
547
547
docname , labelid , sectname = self .env .domaindata ['std' ]['labels' ][label ]
548
548
doctree = self .env .get_and_resolve_doctree (docname , self )
You can’t perform that action at this time.
0 commit comments