Skip to content

Commit

Permalink
fix xml type
Browse files Browse the repository at this point in the history
  • Loading branch information
brunovcosta committed Nov 8, 2024
1 parent dad327f commit ce2ad37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions abstra_notas/nfse/sp/sao_paulo/envio_rps.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def sucesso(self):
return True

@staticmethod
def ler_xml(xml: str):
xml = fromstring(xml.encode("utf-8"))
def ler_xml(xml: Element):
return RetornoEnvioRPS.RetornoEnvioRpsSucesso(
chave_nfe_inscricao_prestador=xml.find(".//InscricaoPrestador").text,
chave_nfe_codigo_verificacao=xml.find(".//CodigoVerificacao").text,
Expand Down

0 comments on commit ce2ad37

Please sign in to comment.