MCPcopy
hub / github.com/mitmproxy/mitmproxy / get_hex_editor

Method get_hex_editor

mitmproxy/tools/console/master.py:127–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 return "vi"
126
127 def get_hex_editor(self) -> str:
128 editors = ["ghex", "hexedit", "hxd", "hexer", "hexcurse"]
129 for editor in editors:
130 if shutil.which(editor):
131 return editor
132 return self.get_editor()
133
134 def spawn_editor(self, data: T) -> T:
135 text = isinstance(data, str)

Callers 2

spawn_editorMethod · 0.95
test_get_hex_editorFunction · 0.80

Calls 1

get_editorMethod · 0.95

Tested by 1

test_get_hex_editorFunction · 0.64