MCPcopy Create free account
hub / github.com/clips/pattern / _escape

Method _escape

pattern/graph/__init__.py:1191–1194  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

1189 }
1190
1191 def _escape(self, s):
1192 if isinstance(s, basestring):
1193 return "\"%s\"" % s.replace("\"", "\\\"")
1194 return s
1195
1196 def _rgba(self, clr):
1197 # Color or tuple to a CSS "rgba(255,255,255,1.0)" string.

Callers 3

_dataMethod · 0.95
test_escapeMethod · 0.80
DatabaseClass · 0.80

Calls

no outgoing calls

Tested by 1

test_escapeMethod · 0.64