MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / normalize_location

Function normalize_location

scripts/website/test_redirects.py:176–179  ·  view source on GitHub ↗
(loc: str | None)

Source from the content-addressed store, hash-verified

174
175
176def normalize_location(loc: str | None) -> str | None:
177 if not loc:
178 return None
179 return loc.strip()
180
181
182def location_matches(expected_target: str, actual_location: str | None) -> bool:

Callers 2

location_matchesFunction · 0.85
check_caseFunction · 0.85

Calls 1

stripMethod · 0.45

Tested by

no test coverage detected