我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用util._G。
def _patch_module(self, m, key=None): m.util = util m.threadpool = threadpool m._G = self._G m.debug = self._debug m.log = Mysql_table_insert m.audit_sniff = self._audit_sniff m.task_push = self.task_push m.security_note = self._security_note m.security_info = self._security_info m.security_warning = self._security_warning m.security_hole = self._security_hole if key: m.decode = decode.Decoder(key).decode