How to silence EllipticCurvePublicNumbers.encode_point CryptographyDeprecationWarning when using Paramiko in Python

前端 未结 2 1780
难免孤独
难免孤独 2020-12-11 04:25

CryptographyDeprecationWarning:

encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use Ell

2条回答
  •  时光取名叫无心
    2020-12-11 04:50

    I've had better success with:

    import warnings
    warnings.simplefilter("ignore", cryptography.utils.CryptographyDeprecationWarning)
    

提交回复
热议问题