MCPcopy
hub / github.com/apache/caldera / escaped

Method escaped

app/objects/secondclass/c_fact.py:94–100  ·  view source on GitHub ↗
(self, executor)

Source from the content-addressed store, hash-verified

92 self._trait = value
93
94 def escaped(self, executor):
95 if executor not in escape_ref:
96 return self.value
97 escaped_value = str(self.value)
98 for char in escape_ref[executor]['special']:
99 escaped_value = escaped_value.replace(char, (escape_ref[executor]['escape_prefix'] + char))
100 return escaped_value
101
102 def __eq__(self, other):
103 if isinstance(other, Fact):

Callers 4

test_escaped_cmdMethod · 0.95
test_escaped_shMethod · 0.95
test_escaped_pshMethod · 0.95

Calls 1

replaceMethod · 0.80

Tested by 3

test_escaped_cmdMethod · 0.76
test_escaped_shMethod · 0.76
test_escaped_pshMethod · 0.76