• Home
  • Raw
  • Download

Lines Matching refs:lineno

10 def showwarning(message, category, filename, lineno, file=None, line=None):  argument
12 msg = WarningMessage(message, category, filename, lineno, file, line)
15 def formatwarning(message, category, filename, lineno, line=None): argument
17 msg = WarningMessage(message, category, filename, lineno, None, line)
42 line = linecache.getline(msg.filename, msg.lineno)
76 % (frame.filename, frame.lineno))
80 line = linecache.getline(frame.filename, frame.lineno)
109 sw(msg.message, msg.category, msg.filename, msg.lineno,
127 msg.filename, msg.lineno, msg.line)
130 def filterwarnings(action, message="", category=Warning, module="", lineno=0, argument
148 assert isinstance(lineno, int) and lineno >= 0, \
163 _add_filter(action, message, category, module, lineno, append=append)
165 def simplefilter(action, category=Warning, lineno=0, append=False): argument
177 assert isinstance(lineno, int) and lineno >= 0, \
179 _add_filter(action, None, category, None, lineno, append=append)
219 action, message, category, module, lineno = [s.strip()
229 if lineno:
231 lineno = int(lineno)
232 if lineno < 0:
235 raise _OptionError("invalid lineno %r" % (lineno,)) from None
237 lineno = 0
238 filterwarnings(action, message, category, module, lineno)
314 lineno = 1
318 lineno = frame.f_lineno
324 warn_explicit(message, category, filename, lineno, module, registry,
327 def warn_explicit(message, category, filename, lineno, argument
330 lineno = int(lineno)
346 key = (text, category, lineno)
356 (ln == 0 or lineno == ln)):
394 msg = WarningMessage(message, category, filename, lineno, source)
403 def __init__(self, message, category, filename, lineno, file=None, argument
408 self.lineno = lineno
417 self.filename, self.lineno, self.line))
494 for filename, lineno, funcname in reversed(coro.cr_origin):
495 line = linecache.getline(filename, lineno)
496 yield (filename, lineno, funcname, line)