We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d547d92 commit f8e0f3aCopy full SHA for f8e0f3a
1 file changed
src/ecdsa/der.py
@@ -464,12 +464,11 @@ def unpem(pem):
464
if isinstance(pem, text_type): # pragma: no branch
465
pem = pem.encode()
466
467
+ lines = (l.strip() for l in pem.split(b"\n"))
468
d = b"".join(
- [
469
- l.strip()
470
- for l in pem.split(b"\n")
471
- if l and not l.startswith(b"-----")
472
- ]
+ l
+ for l in lines
+ if l and not l.startswith(b"-----")
473
)
474
return base64.b64decode(d)
475
0 commit comments