MCPcopy Index your code
hub / github.com/python/cpython / NannyNag

Class NannyNag

Lib/tabnanny.py:54–66  ·  view source on GitHub ↗

Raised by process_tokens() if detecting an ambiguous indent. Captured and handled in check().

Source from the content-addressed store, hash-verified

52 check(arg)
53
54class NannyNag(Exception):
55 """
56 Raised by process_tokens() if detecting an ambiguous indent.
57 Captured and handled in check().
58 """
59 def __init__(self, lineno, msg, line):
60 self.lineno, self.msg, self.line = lineno, msg, line
61 def get_lineno(self):
62 return self.lineno
63 def get_msg(self):
64 return self.msg
65 def get_line(self):
66 return self.line
67
68def check(file):
69 """check(file_or_dir)

Callers 2

process_tokensFunction · 0.85
_process_tokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…