kopia lustrzana https://github.com/micropython/micropython-lib
warnings: Actually implement warn() method.
rodzic
e8e7e84a89
commit
2e4904f99d
|
@ -1 +1,2 @@
|
|||
# MicroPython doesn't support warnings
|
||||
def warn(msg, cat=None, stacklevel=1):
|
||||
print("%s: %s" % ("Warning" if cat is None else cat.__name__, msg))
|
||||
|
|
Ładowanie…
Reference in New Issue