MCPcopy Create free account
hub / github.com/s3tools/s3cmd / convertHeaderTupleListToDict

Function convertHeaderTupleListToDict

S3/Utils.py:56–63  ·  view source on GitHub ↗

Header keys are always in lowercase in python2 but not in python3.

(list)

Source from the content-addressed store, hash-verified

54
55
56def convertHeaderTupleListToDict(list):
57 """
58 Header keys are always in lowercase in python2 but not in python3.
59 """
60 retval = {}
61 for tuple in list:
62 retval[tuple[0].lower()] = tuple[1]
63 return retval
64__all__.append("convertHeaderTupleListToDict")
65
66_rnd_chars = string_mod.ascii_letters + string_mod.digits

Callers 4

send_requestMethod · 0.85
send_fileMethod · 0.85
recv_fileMethod · 0.85
send_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…