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

Class _DummyWriter

tests_python/test_pydevd_io.py:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class _DummyWriter(object):
34 __slots__ = ["commands", "command_meanings"]
35
36 def __init__(self):
37 self.commands = []
38 self.command_meanings = []
39
40 def add_command(self, cmd):
41 from _pydevd_bundle.pydevd_comm import ID_TO_MEANING
42
43 meaning = ID_TO_MEANING[str(cmd.id)]
44 self.command_meanings.append(meaning)
45 self.commands.append(cmd)
46
47
48class _DummyPyDb(object):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by 1

__init__Method · 0.68