File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ def parse_platforms(self):
185
185
if unknown :
186
186
cls = type (self )
187
187
logger = logging .getLogger (cls .__qualname__ )
188
- logger .warn (
188
+ logger .warning (
189
189
f"Unknown platform(s) or syntax '{ ' ' .join (sorted (unknown ))} ' "
190
190
f"in '.. availability:: { self .arguments [0 ]} ', see "
191
191
f"{ __file__ } :{ cls .__qualname__ } .known_platforms for a set "
@@ -272,7 +272,7 @@ def run(self):
272
272
info = env .all_audit_events .setdefault (name , new_info )
273
273
if info is not new_info :
274
274
if not self ._do_args_match (info ['args' ], new_info ['args' ]):
275
- self .logger .warn (
275
+ self .logger .warning (
276
276
"Mismatched arguments for audit-event {}: {!r} != {!r}"
277
277
.format (name , info ['args' ], new_info ['args' ])
278
278
)
@@ -549,7 +549,7 @@ def write(self, *ignored):
549
549
'building topics... ' ,
550
550
length = len (pydoc_topic_labels )):
551
551
if label not in self .env .domaindata ['std' ]['labels' ]:
552
- self .env .logger .warn ( 'label %r not in documentation' % label )
552
+ self .env .logger .warning ( f 'label { label !r } not in documentation' )
553
553
continue
554
554
docname , labelid , sectname = self .env .domaindata ['std' ]['labels' ][label ]
555
555
doctree = self .env .get_and_resolve_doctree (docname , self )
You can’t perform that action at this time.
0 commit comments