我一直这样:
DeprecationWarning: integer argument expected, got float
Run Code Online (Sandbox Code Playgroud)
如何让这条消息消失?有没有办法避免Python中的警告?
密码术弃用警告:
EllipticCurvePublicNumbers上不推荐使用encode_point,并且在以后的版本中将删除它。请使用EllipticCurvePublicKey.public_bytes来获取压缩和未压缩的点编码。
我在 macOS 上运行 Ansible 2.7.6。
每次我运行剧本时,我都会一遍又一遍地收到相同的警告:
/usr/local/lib/python3.7/site-packages/paramiko/ecdsakey.py:164: CryptographyDeprecationWarning: 对从编码数据不安全构造公众号的支持将在未来版本中删除。请使用 EllipticCurvePublicKey.from_encoded_point
我知道问题出在 ansible 正在使用的 paramiko Python 库上。这个问题将在下一个版本中修复,但尚未发布。现在有没有简单的方法来抑制这些警告?