MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / write

Function write

core/alert.py:52–66  ·  view source on GitHub ↗

simple print a message Args: content: content of the message Returns: None

(content)

Source from the content-addressed store, hash-verified

50
51
52def write(content):
53 """
54 simple print a message
55
56 Args:
57 content: content of the message
58
59 Returns:
60 None
61 """
62 sys.stdout.buffer.write(
63 bytes(content, "utf8") if isinstance(content, str) else content
64 )
65 sys.stdout.flush()
66 return
67
68
69def warn(content):

Callers 1

test_write_contentMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_write_contentMethod · 0.72