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

Function check

Tools/i18n/makelocalealias.py:129–138  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

127 return newdata
128
129def check(data):
130 # Check that all alias definitions from the X11 file
131 # are actually mapped to the correct alias locales.
132 errors = 0
133 for k, v in data.items():
134 if locale.normalize(k) != v:
135 print(f'ERROR: {k!a} -> {locale.normalize(k)!a} != {v!a}',
136 file=sys.stderr)
137 errors += 1
138 return errors
139
140if __name__ == '__main__':
141 import argparse

Callers 1

optimizeFunction · 0.70

Calls 2

itemsMethod · 0.45
normalizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…