Skip to content

Commit bab214b

Browse files
authored
Merge pull request #10343 from emmanuel-ferdman/main
Resolve Python Logger warnings
2 parents fd28576 + 0f6d71a commit bab214b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,11 @@ def generate_redirects(app):
434434
return
435435

436436
if not isinstance(app.builder, builders.StandaloneHTMLBuilder):
437-
logging.warn(
437+
logging.warning(
438438
"The 'sphinxcontib-redirects' plugin is only supported "
439439
"by the 'html' builder and subclasses. Skipping..."
440440
)
441-
logging.warn(f"Builder is {app.builder.name} ({type(app.builder)})")
441+
logging.warning(f"Builder is {app.builder.name} ({type(app.builder)})")
442442
return
443443

444444
with open(path) as redirects:

ports/zephyr-cp/cptools/cpbuild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
LAST_BUILD_TIMES = json.load(f)
2525
logger.info("Build times loaded.")
2626
else:
27-
logger.warn(
27+
logger.warning(
2828
"No last build times found. This is normal if you're running this for the first time."
2929
)
3030

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy