def _connect_secureish(*args, **kwargs):
 if (tuple((int(x) for x in boto.__version__.split('.'))) >= (2, 6, 0)):
  kwargs['validate_certs'] = True
 kwargs['is_secure'] = True
 auth_region_name = kwargs.pop('auth_region_name', None)
 conn = connection.S3Connection(*args, **kwargs)
 if auth_region_name:
  conn.auth_region_name = auth_region_name
 return conn

def _connect_secureish ( * args , ** kwargs ) : if ( tuple ( ( int ( x ) for x in boto . __version__ . split ( '.' ) ) ) >= ( 2 , 6 , 0 ) ) : kwargs [ 'validate_certs' ] = True kwargs [ 'is_secure' ] = True auth_region_name = kwargs . pop ( 'auth_region_name' , None ) conn = connection . S3Connection ( * args , ** kwargs ) if auth_region_name : conn . auth_region_name = auth_region_name return conn
connect using the safest available options .