MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / asciize

Function asciize

04-text-byte/simplify.py:86–89  ·  view source on GitHub ↗
(txt)

Source from the content-addressed store, hash-verified

84
85
86def asciize(txt):
87 no_marks = shave_marks_latin(dewinize(txt)) # <5>
88 no_marks = no_marks.replace('ß', 'ss') # <6>
89 return unicodedata.normalize('NFKC', no_marks) # <7>
90# end::ASCIIZE[]

Callers

nothing calls this directly

Calls 3

shave_marks_latinFunction · 0.85
dewinizeFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected