Skip to content

Commit 8a57288

Browse files
authored
Merge pull request #379 from leogregianin/descompacta
Adiciona parametro encode no descompacta
2 parents 386b820 + 6ff16de commit 8a57288

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ python -m unittest
154154
Lint
155155
-----------
156156

157-
Instalação: `pip install ruff`
158-
Checar lint: `ruff check .`
159-
Formatar: `ruff format .`
157+
* Instalação: `pip install ruff`
158+
* Checar lint: `ruff check .`
159+
* Formatar: `ruff format .`
160160

161161

162162
Documentação

pynfe/utils/descompactar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ def descompacta(stringZipada):
2626
texto = zip.read()
2727
arq.close()
2828
zip.close()
29-
descompactado = texto.decode("utf-8")
29+
descompactado = texto.decode("utf-8").encode()
3030
return etree.fromstring(descompactado)

0 commit comments

Comments
 (0)