def ip_bracket(addr):
    if addr and ':' in addr and not addr.startswith('['):
        return '[{0}]'.format(addr)
    return addr
Test that 'rm -r' works on bucket.
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/ip_bracket--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_rm.py/TestRm.test_remove_all_versions_recursive_on_bucket