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

Function accept

Lib/test/test__locale.py:63–65  ·  view source on GitHub ↗
(loc)

Source from the content-addressed store, hash-verified

61 # Workaround for MSVC6(debug) crash bug
62 if "MSC v.1200" in sys.version:
63 def accept(loc):
64 a = loc.split(".")
65 return not(len(a) == 2 and len(a[-1]) >= 9)
66 candidate_locales = [loc for loc in candidate_locales if accept(loc)]
67
68# List known locale values to test against when available.

Callers 1

setUpModuleFunction · 0.70

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…