MCPcopy
hub / github.com/scrapy/scrapy / normkey

Method normkey

scrapy/utils/datatypes.py:74–76  ·  view source on GitHub ↗

Method to normalize dictionary key access

(self, key: AnyStr)

Source from the content-addressed store, hash-verified

72 copy = __copy__
73
74 def normkey(self, key: AnyStr) -> AnyStr:
75 """Method to normalize dictionary key access"""
76 return key.lower()
77
78 def normvalue(self, value: Any) -> Any:
79 """Method to normalize values prior to be set"""

Callers 8

__getitem__Method · 0.95
__setitem__Method · 0.95
__delitem__Method · 0.95
__contains__Method · 0.95
getMethod · 0.95
setdefaultMethod · 0.95
updateMethod · 0.95
popMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected