MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / check

Function check

tools/python-3.11.9-amd64/Tools/i18n/makelocalealias.py:118–127  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

116 return newdata
117
118def check(data):
119 # Check that all alias definitions from the X11 file
120 # are actually mapped to the correct alias locales.
121 errors = 0
122 for k, v in data.items():
123 if locale.normalize(k) != v:
124 print('ERROR: %a -> %a != %a' % (k, locale.normalize(k), v),
125 file=sys.stderr)
126 errors += 1
127 return errors
128
129if __name__ == '__main__':
130 import argparse

Callers 1

optimizeFunction · 0.70

Calls 3

printFunction · 0.50
itemsMethod · 0.45
normalizeMethod · 0.45

Tested by

no test coverage detected