micropython-lib/python-stdlib/warnings/example_warn.py

5 wiersze
164 B
Python

import warnings
warnings.warn("block_size of %d seems too small; using our " "default of %d.", RuntimeError, 2)
# RuntimeWarning, 2)