Lines Matching +full:no +full:- +full:trailing +full:- +full:spaces
3 """The Tab Nanny despises ambiguous indentation. She knows no mercy.
5 tabnanny -- Detection of ambiguous indentation
19 # XXX script-like. This will be addressed later.
27 raise ValueError("tokenize.NL doesn't exist -- tokenize module too old")
51 if o == '-q':
53 if o == '-v':
56 errprint("Usage:", sys.argv[0], "[-v] file_or_directory ...")
93 os.path.normcase(name[-3:]) == ".py"):
148 # the normal form as a pair (count, trailing), where:
152 # trailing
153 # the number of trailing spaces in raw[:n]
172 count = count + [0] * (b - len(count) + 1)
182 # return length of longest contiguous run of spaces (whether or not
185 count, trailing = self.norm
186 return max(len(count)-1, trailing)
196 # il = trailing + sum (i//ts + 1)*ts*count[i] =
197 # trailing + ts * sum (i//ts + 1)*count[i] =
198 # trailing + ts * sum i//ts*count[i] + count[i] =
199 # trailing + ts * [(sum i//ts*count[i]) + (sum count[i])] =
200 # trailing + ts * [(sum i//ts*count[i]) + num_tabs]
203 count, trailing = self.norm
207 return trailing + tabsize * (il + self.nt)
236 # first, but no longer.
239 # M.num_tabs() <= N.num_tabs(). Proof is easy but kinda long-winded.
297 if not indents[-1].less(thisguy):
298 witness = indents[-1].not_less_witness(thisguy)
310 # is indented *and* lacks a newline -- then DEDENTs pop out
312 # assert check_equal # else no earlier NEWLINE, or an earlier INDENT
315 del indents[-1]
326 if not indents[-1].equal(thisguy):
327 witness = indents[-1].not_equal_witness(thisguy)