From 7e46c6f022e15a12913acd47ce126bb5a9a1a6e1 Mon Sep 17 00:00:00 2001 From: Jonathan Rudman Date: Sat, 30 Dec 2023 16:16:14 +0000 Subject: [PATCH] Remove "with nogil" from Linux and macOS open_file --- rawpy/_rawpy.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rawpy/_rawpy.pyx b/rawpy/_rawpy.pyx index 0f20d98..0636aa8 100644 --- a/rawpy/_rawpy.pyx +++ b/rawpy/_rawpy.pyx @@ -407,8 +407,7 @@ cdef class RawPy: res = self.p.open_file(wchars) PyMem_Free(wchars) ELSE: - with nogil: - res = self.p.open_file(path.encode('UTF-8')) + res = self.p.open_file(path.encode('UTF-8')) self.handle_error(res) def open_buffer(self, fileobj):