Skip to content

Commit

Permalink
MINOR: [Python] Deduplicate ensure_s3_initialized() call (apache#38451
Browse files Browse the repository at this point in the history
)

### Rationale for this change

apache#38375 introduced duplicate calls to `ensure_s3_initialized()`.

### What changes are included in this PR?

Deduplicates call to `ensure_s3_initialized()`.

### Are these changes tested?

Yes, covered by existing S3 tests.

### Are there any user-facing changes?

No.

Authored-by: Peter Andreas Entschev <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
pentschev authored and dgreiss committed Feb 17, 2024
1 parent 8ea3ce4 commit fef6ff7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/pyarrow/_s3fs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ cdef class S3FileSystem(FileSystem):
load_frequency=900, proxy_options=None,
allow_bucket_creation=False, allow_bucket_deletion=False,
retry_strategy: S3RetryStrategy = AwsStandardS3RetryStrategy(max_attempts=3)):
ensure_s3_initialized()

cdef:
optional[CS3Options] options
shared_ptr[CS3FileSystem] wrapped
Expand Down

0 comments on commit fef6ff7

Please sign in to comment.