Skip to content

Commit

Permalink
nogil not necessary for function that just accesses Python objects
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Sep 22, 2023
1 parent bda359b commit 19a7423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/pyarrow/_parquet_encryption.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ from pyarrow.lib cimport _Weakrefable
cdef class CryptoFactory(_Weakrefable):
cdef shared_ptr[CPyCryptoFactory] factory
cdef init(self, callable_client_factory)
cdef inline shared_ptr[CPyCryptoFactory] unwrap(self) nogil
cdef inline shared_ptr[CPyCryptoFactory] unwrap(self)

cdef class EncryptionConfiguration(_Weakrefable):
cdef shared_ptr[CEncryptionConfiguration] configuration
Expand Down
2 changes: 1 addition & 1 deletion python/pyarrow/_parquet_encryption.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ cdef class CryptoFactory(_Weakrefable):
def remove_cache_entries_for_all_tokens(self):
self.factory.get().RemoveCacheEntriesForAllTokens()

cdef inline shared_ptr[CPyCryptoFactory] unwrap(self) nogil:
cdef inline shared_ptr[CPyCryptoFactory] unwrap(self):
return self.factory


Expand Down

0 comments on commit 19a7423

Please sign in to comment.