MCPcopy Index your code
hub / github.com/RustPython/RustPython / NannyNag

Class NannyNag

Lib/tabnanny.py:56–68  ·  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

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

Callers 2

process_tokensFunction · 0.85
_process_tokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected