From df3826b652bfeeef4ce1f4ac2623b63dcb2fd8c1 Mon Sep 17 00:00:00 2001 From: kngwyu Date: Tue, 15 Dec 2020 23:13:00 +0900 Subject: [PATCH] Remove a redundant #cfg --- src/gil.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gil.rs b/src/gil.rs index e5ede2da..c66bbaf0 100644 --- a/src/gil.rs +++ b/src/gil.rs @@ -64,7 +64,6 @@ pub fn prepare_freethreaded_python() { if ffi::Py_IsInitialized() != 0 { // If Python is already initialized, we expect Python threading to also be initialized, // as we can't make the existing Python main thread acquire the GIL. - #[cfg(not(Py_3_7))] debug_assert_ne!(ffi::PyEval_ThreadsInitialized(), 0); } else { // Initialize Python.