MCPcopy Index your code
hub / github.com/python/cpython / append

Method append

Lib/test/test_httplib.py:145–152  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

143 def __init__(self):
144 self.count = {}
145 def append(self, item):
146 kv = item.split(b':')
147 if len(kv) > 1:
148 # item is a 'Key: Value' header string
149 lcKey = kv[0].decode('ascii').lower()
150 self.count.setdefault(lcKey, 0)
151 self.count[lcKey] += 1
152 list.append(self, item)
153
154 for explicit_header in True, False:
155 for header in 'Content-length', 'Host', 'Accept-encoding':

Callers 7

appendMethod · 0.45
_parse_chunkedMethod · 0.45
test_peekMethod · 0.45
_verify_readlineMethod · 0.45
test_read1_unboundedMethod · 0.45
test_read1_boundedMethod · 0.45
readlineMethod · 0.45

Calls 4

splitMethod · 0.45
lowerMethod · 0.45
decodeMethod · 0.45
setdefaultMethod · 0.45

Tested by

no test coverage detected