micropython-lib/warnings/example_warn.py

7 wiersze
226 B
Python
Czysty Zwykły widok Historia

2015-02-22 12:07:40 +00:00
import warnings
warnings.warn('block_size of %d seems too small; using our '
'default of %d.',
RuntimeError, 2)
# RuntimeWarning, 2)