Skip to content

Commit

Permalink
apacheGH-40342: [Python] Fix pickling of LocalFileSystem for cython 2 (
Browse files Browse the repository at this point in the history
…apache#41459)

Small follow-up fix for the failure introduced by apache#40356
* GitHub Issue: apache#40342

Authored-by: Joris Van den Bossche <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
  • Loading branch information
jorisvandenbossche authored and tolleybot committed May 4, 2024
1 parent cd0199b commit 7c0c3fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/pyarrow/_fs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# cython: language_level = 3

from cpython.datetime cimport datetime, PyDateTime_DateTime
from cython cimport binding

from pyarrow.includes.common cimport *
from pyarrow.includes.libarrow_python cimport PyDateTime_to_TimePoint
Expand Down Expand Up @@ -421,6 +422,7 @@ cdef class FileSystem(_Weakrefable):
"SubTreeFileSystem")

@staticmethod
@binding(True) # Required for cython < 3
def _from_uri(uri):
fs, _path = FileSystem.from_uri(uri)
return fs
Expand Down

0 comments on commit 7c0c3fd

Please sign in to comment.