Skip to content

Commit

Permalink
Update python/pyarrow/_gcsfs.pyx
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
  • Loading branch information
emkornfield and pitrou committed Apr 19, 2022
1 parent 79afe5d commit 5952ed7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/pyarrow/_gcsfs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,8 @@ cdef class GcsFileSystem(FileSystem):
if endpoint_override is not None:
options.endpoint_override = tobytes(endpoint_override)
if default_metadata is not None:
if not isinstance(default_metadata, KeyValueMetadata):
default_metadata = KeyValueMetadata(default_metadata)
options.default_metadata = pyarrow_unwrap_metadata(
default_metadata)
ensure_metadata(default_metadata))

with nogil:
wrapped = GetResultValue(CGcsFileSystem.Make(options))
Expand Down

0 comments on commit 5952ed7

Please sign in to comment.