We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8e7e84 commit 2e4904fCopy full SHA for 2e4904f
warnings/warnings.py
@@ -1 +1,2 @@
1
-# MicroPython doesn't support warnings
+def warn(msg, cat=None, stacklevel=1):
2
+ print("%s: %s" % ("Warning" if cat is None else cat.__name__, msg))
0 commit comments