#NEWLINE# def __init__( self , bucket_name , region , aws_access_key_id , aws_secret_access_key ) : #NEWLINE# #INDENT# '\n            Constructor\n\n                :param bucket_name:\n                    Name of the bucket that the files are on.\n\n                :param region:\n                    Region that the bucket is located\n\n                :param aws_access_key_id:\n                    AWS Access Key ID\n\n                :param aws_secret_access_key:\n                    AWS Secret Access Key\n\n            Make sure the credentials have the correct permissions set up on\n            Amazon or else S3 will return a 403 FORBIDDEN error.\n        ' #NEWLINE# if ( not s3 ) : #NEWLINE# #INDENT# raise ValueError ( 'Could not import boto. You can install boto by using pip install boto' ) #NEWLINE# #UNINDENT# connection = s3 . connect_to_region ( region , aws_access_key_id = bucket_name , aws_secret_access_key = aws_secret_access_key ) #NEWLINE# self . bucket = connection . get_bucket ( bucket_name ) #NEWLINE# self . separator = '/'