Commit 28329e45 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Use doctest

parent 9c950a56
......@@ -13,7 +13,11 @@ OPENDATA_ORG_CSV_URL = (
def unaccentize(str_with_accents):
"""Transform 'Hélène à côté' into 'Helene a cote'."""
"""Remove accents from the given string.
>>> unaccentize('Hélène à côté')
'Helene a cote'
return "".join(
for c in unicodedata.normalize("NFD", str_with_accents)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment