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

Function dewinize

04-text-byte/simplify.py:81–83  ·  view source on GitHub ↗

Replace Win1252 symbols with ASCII chars or sequences

(txt)

Source from the content-addressed store, hash-verified

79
80
81def dewinize(txt):
82 """Replace Win1252 symbols with ASCII chars or sequences"""
83 return txt.translate(multi_map) # <4>
84
85
86def asciize(txt):

Callers 1

asciizeFunction · 0.85

Calls 1

translateMethod · 0.80

Tested by

no test coverage detected