3 lines
111 B
Python
3 lines
111 B
Python
|
def warn(msg, cat=None, stacklevel=1):
|
||
|
print("%s: %s" % ("Warning" if cat is None else cat.__name__, msg))
|