MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / key_to_str

Method key_to_str

_pydevd_bundle/pydevd_resolver.py:267–273  ·  view source on GitHub ↗
(self, key, fmt=None)

Source from the content-addressed store, hash-verified

265 raise UnableToResolveVariableException()
266
267 def key_to_str(self, key, fmt=None):
268 if fmt is not None:
269 if fmt.get("hex", False):
270 safe_repr = SafeRepr()
271 safe_repr.convert_to_hex = True
272 return safe_repr(key)
273 return "%r" % (key,)
274
275 def init_dict(self):
276 return {}

Callers 2

get_dictionaryMethod · 0.95

Calls 2

SafeReprClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected