Skip to content

Commit 8f29ef4

Browse files
author
Rebecka Gulliksson
committed
Deserialize ECKey.d if it's a string either in Python 2 or 3.
1 parent d59180c commit 8f29ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jwkest/jwk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def deserialize(self):
487487
self.curve = NISTEllipticCurve.by_name(self.crv)
488488
if self.d:
489489
try:
490-
if isinstance(self.d, str):
490+
if isinstance(self.d, six.string_types):
491491
self.d = deser(self.d)
492492
except ValueError as err:
493493
raise DeSerializationNotPossible(str(err))

0 commit comments

Comments
 (0)