Lines Matching refs:line

10   <file>:<line>: DeprecationWarning: classic <type> division
24 line number. Then, for each file that received at least one warning,
27 its findings to stdout, preceded by a line of dashes and a line of the
36 Here are the possible messages on stdout (N stands for a line number):
38 - A plain-diff-style change ('NcN', a line marked by '<', a line
39 containing '---', and a line marked by '>'):
44 - 'True division / operator at line N' and a line marked by '=':
49 - 'Ambiguous / operator (..., ...) at line N', line marked by '?':
56 - 'No conclusive evidence on line N', line marked by '*':
68 - 'Phantom ... warnings for line N', line marked by '*':
70 A warning was seen for a line not containing a / operator. The most
77 - 'More than one / operator in line N'; or
80 The scanner found more than one / operator on a single line, or in a
82 framework doesn't (and can't) show the offset within the line, and
83 the code generator doesn't always give the correct line number for
84 operations in a multi-line statement, we can't be sure whether all
89 - 'Can't find the / operator in line N', line marked by '*':
92 reported a '/' operator but the line it returns didn't contain a '/'
95 - 'Bad warning for line N: XYZ', line marked by '*':
190 line = f.readline()
191 if not line:
193 m = prog.match(line)
195 if line.find("division") >= 0:
196 sys.stderr.write("Warning: ignored input " + line)
245 for (row, col), line in slashes:
252 print("*** More than one / operator in line", rows[0])
267 for (row, col), line in slashes:
271 line = chop(line)
272 if line[col:col+1] != "/":
273 print("*** Can't find the / operator in line %d:" % row)
274 print("*", line)
277 print("*** Bad warning for line %d:" % row, bad)
278 print("*", line)
281 print("<", line)
283 print(">", line[:col] + "/" + line[col:])
285 print("True division / operator at line %d:" % row)
286 print("=", line)
288 print("*** Ambiguous / operator (%s, %s) at line %d:" %
290 print("?", line)
304 print("*** Phantom %s warnings for line %d:" % (whats, row))
309 for (row, col), line in slashes:
311 print("*** %s on line %d:" % (message, row))
312 print("*", chop(line))
325 line = self.fp.readline()
326 if not line:
329 self.lookahead.append(line)
334 line = self.lookahead.pop(0)
335 self.buffer.append(line)
337 return line
352 line = self[first]
354 line = "<missing line>"
355 print(mark, chop(line))
361 for type, token, start, end, line in g:
366 slashes.append((start, line))
371 def chop(line):
372 if line.endswith("\n"):
373 return line[:-1]
375 return line