<s> from boto . regioninfo import RegionInfo , get_regions <EOL> def regions ( ) : <EOL> """<STR_LIT>""" <EOL> from boto . dynamodb2 . layer1 import DynamoDBConnection <EOL> return get_regions ( '<STR_LIT>' , connection_cls = DynamoDBConnection ) <EOL> def connect_to_region ( region_name , ** kw_params ) : <EOL> for region in regions ( ) : <EOL> if region . name == region_name : <EOL> return region . connect ( ** kw_params ) <EOL> return None </s>
