Home | History | Annotate | Download | only in python2.7

Lines Matching full:none

14 def warnpy3k(message, category=None, stacklevel=1):
20 if category is None:
24 def _show_warning(message, category, filename, lineno, file=None, line=None):
26 if file is None:
36 def formatwarning(message, category, filename, lineno, line=None):
39 line = linecache.getline(filename, lineno) if line is None else line
88 item = (action, None, category, None, lineno)
162 m = __import__(module, None, None, [klass])
175 def warn(message, category=None, stacklevel=1):
181 if category is None:
216 module=None, registry=None, module_globals=None):
218 if module is None:
222 if registry is None:
237 if ((msg is None or msg.match(text)) and
239 (mod is None or mod.match(module)) and
288 def __init__(self, message, category, filename, lineno, file=None,
289 line=None):
293 self._category_name = category.__name__ if category else None
308 returned by the context manager. Otherwise None is returned by the context
318 def __init__(self, record=False, module=None):
327 self._module = sys.modules['warnings'] if module is None else module
353 return None
369 # If either if the compiled regexs are None, match anything.