8000 Resolve Python Logger warnings · Neradoc/circuitpython@0f6d71a · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f6d71a

Browse files
Resolve Python Logger warnings
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent fd28576 commit 0f6d71a

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< BF02 /span>):
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)
0