Skip to content

Commit

Permalink
Remove "with nogil" from Linux and macOS open_file
Browse files Browse the repository at this point in the history
  • Loading branch information
jontyrudman committed Feb 15, 2024
1 parent f9f2b89 commit 140a4e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rawpy/_rawpy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 140a4e1

Please sign in to comment.