Skip to content

Commit 5abe1c9

Browse files
committed
privatize function
1 parent 502b498 commit 5abe1c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def add_traits(base, names, trait_type=None):
123123
return base
124124

125125

126-
def get_head_bucket(s3_resource, bucket_name):
126+
def _get_head_bucket(s3_resource, bucket_name):
127127
""" Try to get the header info of a bucket, in order to
128128
check if it exists and its permissions
129129
"""
@@ -577,15 +577,15 @@ def _fetch_bucket(self, bucket_name):
577577

578578
# And try fetch the bucket with the name argument
579579
try:
580-
get_head_bucket(s3_resource, bucket_name)
580+
_get_head_bucket(s3_resource, bucket_name)
581581
except Exception as exc:
582582

583583
# Try to connect anonymously
584584
s3_resource.meta.client.meta.events.register(
585585
'choose-signer.s3.*', botocore.handlers.disable_signing)
586586

587587
iflogger.info('Connecting to AWS: %s anonymously...', bucket_name)
588-
get_head_bucket(s3_resource, bucket_name)
588+
_get_head_bucket(s3_resource, bucket_name)
589589

590590
# Explicitly declare a secure SSL connection for bucket object
591591
bucket = s3_resource.Bucket(bucket_name)

0 commit comments

Comments
 (0)