def b2_url_decode(s):
    # Use str() to make sure that the input to unquote is a str, not
    # unicode, which ensures that the result is a str, which allows
    # the decoding to work properly.
    return urllib.parse.unquote_plus(str(s)).decode('utf-8')
Decodes a Unicode string returned from B2 in an HTTP header.
dataset/ETHPy150Open Backblaze/B2_Command_Line_Tool/b2/utils.py/b2_url_decode