Skip to content

Commit

Permalink
Update ecc.rst
Browse files Browse the repository at this point in the history
Correct "SyntaxError: unterminated string literal" in documentation example for public key export with ECC. 

Close string literal for open "mode" parameter. Should be "wbt" not "wbt.
  • Loading branch information
lefkovitzj authored and Legrandin committed Aug 22, 2024
1 parent 38033a3 commit e42fd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/src/public_key/ecc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ and reimport it later::

You can also export the public key, which is not sensitive::

>>> with open("mypublickey.pem", "wbt) as f:
>>> with open("mypublickey.pem", "wbt") as f:
>>> data = mykey.public_key().export_key()

.. _ECC table:
Expand Down

0 comments on commit e42fd29

Please sign in to comment.