Skip to content

Commit f94f78e

Browse files
Merge pull request #95 from Engenere/sync-decode
FIX: digVal gds_format_base64 byte to str sync
2 parents 6f9a02e + 0882d17 commit f94f78e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/erpbrasil/nfelib_legacy/v4_00/retEnviNFe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32000,7 +32000,7 @@ def exportChildren(self, outfile, level, namespaceprefix_='', namespacedef_='',
3200032000
if self.digVal is not None:
3200132001
namespaceprefix_ = self.digVal_nsprefix_ + ':' if (UseCapturedNS_ and self.digVal_nsprefix_) else ''
3200232002
showIndent(outfile, level, pretty_print)
32003-
outfile.write('<%sdigVal>%s</%sdigVal>%s' % (namespaceprefix_ , self.gds_format_base64(self.digVal, input_name='digVal'), namespaceprefix_ , eol_))
32003+
outfile.write('<%sdigVal>%s</%sdigVal>%s' % (namespaceprefix_ , self.gds_format_base64(self.digVal, input_name='digVal').decode(), namespaceprefix_ , eol_))
3200432004
if self.cStat is not None:
3200532005
namespaceprefix_ = self.cStat_nsprefix_ + ':' if (UseCapturedNS_ and self.cStat_nsprefix_) else ''
3200632006
showIndent(outfile, level, pretty_print)

0 commit comments

Comments
 (0)