MCPcopy Create free account
hub / github.com/microsoft/debugpy / _prettify

Method _prettify

src/debugpy/common/messaging.py:1190–1197  ·  view source on GitHub ↗

Reorders items in a MessageDict such that it is more readable.

(self, message_dict)

Source from the content-addressed store, hash-verified

1188 )
1189
1190 def _prettify(self, message_dict):
1191 """Reorders items in a MessageDict such that it is more readable."""
1192 for key in self._prettify_order:
1193 if key not in message_dict:
1194 continue
1195 value = message_dict[key]
1196 del message_dict[key]
1197 message_dict[key] = value
1198
1199 @contextlib.contextmanager
1200 def _send_message(self, message):

Callers 2

_send_messageMethod · 0.95
object_hookMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected