Skip to content

Commit

Permalink
[ADD] Unaccent
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcardoso21 committed Feb 24, 2021
1 parent b8eeb12 commit db8e0e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/erpbrasil/edoc/edoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from datetime import datetime
from datetime import timedelta
from datetime import timezone
from unidecode import unidecode

from erpbrasil.assinatura.assinatura import Assinatura
from lxml import etree
Expand Down Expand Up @@ -65,7 +66,7 @@ def _generateds_to_string_etree(self, ds, pretty_print=False):
0,
pretty_print=pretty_print,
)
contents = output.getvalue()
contents = unidecode(output.getvalue())
output.close()
return contents, etree.fromstring(contents)

Expand Down

0 comments on commit db8e0e6

Please sign in to comment.