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

Function apply

Lib/idlelib/zzdummy.py:15–21  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

13
14 @wraps(format_line)
15 def apply(self, event=None):
16 head, tail, chars, lines = self.formatter.get_region()
17 for pos in range(len(lines) - 1):
18 line = lines[pos]
19 lines[pos] = format_line(self, line)
20 self.formatter.set_region(head, tail, chars, lines)
21 return 'break'
22
23 return apply
24

Callers

nothing calls this directly

Calls 2

get_regionMethod · 0.80
set_regionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…