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

Method init_validators

Lib/idlelib/configdialog.py:1764–1769  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1762 self.load_shelled_cfg()
1763
1764 def init_validators(self):
1765 digits_or_empty_re = re.compile(r'[0-9]*')
1766 def is_digits_or_empty(s):
1767 "Return 's is blank or contains only digits'"
1768 return digits_or_empty_re.fullmatch(s) is not None
1769 self.digits_only = (self.register(is_digits_or_empty), '%P',)
1770
1771 def create_page_shed(self):
1772 """Return frame of widgets for Shell/Ed tab.

Callers 1

__init__Method · 0.95

Calls 2

compileMethod · 0.45
registerMethod · 0.45

Tested by

no test coverage detected