MCPcopy Index your code
hub / github.com/clips/pattern / normalize

Function normalize

pattern/web/oauth/__init__.py:54–61  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

52 return isinstance(string, unicode) and string.encode("utf-8") or str(string)
53
54def normalize(string):
55 # Normalize accents (é => e) for services that have problems with utf-8
56 # (used to be the case with Yahoo BOSS but this appears to be fixed now).
57 string = utf8(string)
58 for k, v in _diacritics.items():
59 for v in v:
60 string = string.replace(v, k)
61 return string
62
63def base(url, data={}, method="GET"):
64 # Signature base string: http://tools.ietf.org/html/rfc5849#section-3.4.1

Callers

nothing calls this directly

Calls 2

utf8Function · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…