From dec20369b1abd441e024d0679d6567b2b88e0ef6 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Sat, 26 Oct 2024 17:14:00 +0100 Subject: [PATCH] remove another now-redundant import --- src/err/err_state.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/err/err_state.rs b/src/err/err_state.rs index f516e108949..2ba153b6ef8 100644 --- a/src/err/err_state.rs +++ b/src/err/err_state.rs @@ -102,9 +102,6 @@ pub(crate) struct PyErrStateNormalized { impl PyErrStateNormalized { pub(crate) fn new(pvalue: Bound<'_, PyBaseException>) -> Self { - #[cfg(not(Py_3_12))] - use crate::types::any::PyAnyMethods; - Self { #[cfg(not(Py_3_12))] ptype: pvalue.get_type().into(),