Skip to content

Commit e9a6fcd

Browse files
author
Leif Johansson
committed
fix encode/decode... but is this needed?
1 parent f793800 commit e9a6fcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/xmlsec/test/p11_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _get_all_signatures(t):
245245
sv = sig.findtext(".//{%s}SignatureValue" % xmlsec.NS['ds'])
246246
assert sv is not None
247247
# base64-dance to normalize newlines
248-
res.append(codecs.encode(codecs.decode(sv, 'base64'),'base64'))
248+
res.append(base64.encodestring(base64.decodestring(sv)))
249249
return res
250250

251251

0 commit comments

Comments
 (0)