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

Method _addcolorizer

Lib/idlelib/editor.py:780–787  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

778 self.ResetColorizer()
779
780 def _addcolorizer(self):
781 if self.color:
782 return
783 if self.ispythonsource(self.io.filename):
784 self.color = self.ColorDelegator()
785 # can add more colorizers here...
786 if self.color:
787 self.per.insertfilterafter(filter=self.color, after=self.undo)
788
789 def _rmcolorizer(self):
790 if not self.color:

Callers 1

ResetColorizerMethod · 0.95

Calls 2

ispythonsourceMethod · 0.95
insertfilterafterMethod · 0.80

Tested by

no test coverage detected