MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / clear_contents_dictionary

Function clear_contents_dictionary

tests_python/test_resolvers.py:159–164  ·  view source on GitHub ↗
(dictionary)

Source from the content-addressed store, hash-verified

157
158
159def clear_contents_dictionary(dictionary):
160 dictionary = dictionary.copy()
161 for key in list(dictionary):
162 if key.startswith("__") or key in ("count", "index"):
163 del dictionary[key]
164 return dictionary
165
166
167def test_tuple_resolver():

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected