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