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

Method check_module_event

Lib/idlelib/runscript.py:48–59  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

46 self.perf = 0.0 # Workaround for macOS 11 Uni2; see bpo-42508.
47
48 def check_module_event(self, event):
49 if isinstance(self.editwin, outwin.OutputWindow):
50 self.editwin.text.bell()
51 return 'break'
52 filename = self.getfilename()
53 if not filename:
54 return 'break'
55 if not self.checksyntax(filename):
56 return 'break'
57 if not self.tabnanny(filename):
58 return 'break'
59 return "break"
60
61 def tabnanny(self, filename):
62 # XXX: tabnanny should work on binary files as well

Callers

nothing calls this directly

Calls 4

getfilenameMethod · 0.95
checksyntaxMethod · 0.95
tabnannyMethod · 0.95
bellMethod · 0.45

Tested by

no test coverage detected