def safe_quote_tuple(tuple_):
    """Convert a 2-tuple to a string for use with AWS"""
    key = urllib.quote(str(tuple_[0]), '-_.~')
    value = urllib.quote(str(tuple_[1]), '-_.~')
    return "%s=%s" % (key, value)
dataset/ETHPy150Open wehriam/awspider/awspider/aws/lib.py/safe_quote_tuple/original