s4cmd.py
def connect(self):
    '''Connect to S3 storage'''
    try:
      if S3Handler.S3_KEYS:
        self.s3 = BotoClient(self.opt, S3Handler.S3_KEYS[0], S3Handler.S3_KEYS[1])
      else:
        self.s3 = BotoClient(self.opt)
    except Exception as e:
      raise RetryFailure('Unable to connect to s3: %s' % e)
def connect(self):
    '''Connect to S3 storage'''
    try:
      if S3Handler.S3_KEYS:
        self.s3 = BotoClient(self.opt, S3Handler.S3_KEYS[0], S3Handler.S3_KEYS[1])
      else:
        self.s3 = BotoClient(self.opt)
    except Exception as e:
      raise RetryFailure('Unable to connect to s3: %s' % e)
def connect ( self ) : try : if S3Handler . S3_KEYS : self . s3 = BotoClient ( self . opt , S3Handler . S3_KEYS [ 0 ] , S3Handler . S3_KEYS [ 1 ] ) else : self . s3 = BotoClient ( self . opt ) except Exception as e : raise RetryFailure ( 'Unable to connect to s3: %s' % e )
Connect to S3 storage
Connect to S3 storage