def __init__(self, warnaction = None, warngoal = sys.stderr, caller_id = 0):
self.warn_lock = RLock()
self.onceregistry = {}
self.filters = []
self._ids = []
if not caller_id in self._ids:
self._ids.append(caller_id)
self.warngoal = warngoal
if warnaction == None:
warnaction = "default"
self.set_warnaction(warnaction, caller_id)
评论列表
文章目录