You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if !py_curve.is_instance(&types::ELLIPTIC_CURVE.get(py)?)? {
36
-
if allow_curve_class {
37
-
let warning_cls = types::DEPRECATED_IN_42.get(py)?;
38
-
let message = cstr_from_literal!("Curve argument must be an instance of an EllipticCurve class. Did you pass a class by mistake? This will be an exception in a future version of cryptography");
39
-
pyo3::PyErr::warn(py,&warning_cls, message,1)?;
40
-
}else{
41
-
returnErr(CryptographyError::from(
42
-
pyo3::exceptions::PyTypeError::new_err("curve must be an EllipticCurve instance"),
43
-
));
44
-
}
34
+
returnErr(CryptographyError::from(
35
+
pyo3::exceptions::PyTypeError::new_err("curve must be an EllipticCurve instance"),
36
+
));
45
37
}
46
38
47
39
let py_curve_name = py_curve.getattr(pyo3::intern!(py,"name"))?;
0 commit comments