Skip to content

Commit 2e4904f

Browse files
committed
warnings: Actually implement warn() method.
1 parent e8e7e84 commit 2e4904f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

warnings/warnings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# MicroPython doesn't support warnings
1+
def warn(msg, cat=None, stacklevel=1):
2+
print("%s: %s" % ("Warning" if cat is None else cat.__name__, msg))

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