Skip to content

Commit

Permalink
remove bizzare dead code (#7444)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Jul 23, 2022
1 parent 16bc747 commit 806c184
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cryptography/hazmat/primitives/serialization/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,9 +672,7 @@ def serialize_ssh_private_key(
if ciph is not None:
ciph.encryptor().update_into(buf[ofs:mlen], buf[ofs:])

txt = _ssh_pem_encode(buf[:mlen])
buf[ofs:mlen] = bytearray(slen)
return txt
return _ssh_pem_encode(buf[:mlen])


_SSH_PUBLIC_KEY_TYPES = typing.Union[
Expand Down

0 comments on commit 806c184

Please sign in to comment.