MCPcopy Create free account
hub / github.com/ActiveState/code / escape

Method escape

recipes/Python/496795_pythreplacement/recipe-496795.py:203–211  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

201 self._keymap[key] = oldkey
202
203 def escape(self, value):
204
205 # Java escapes the '=' and ':' in the value
206 # string with backslashes in the store method.
207 # So let us do the same.
208 newvalue = value.replace(':','\:')
209 newvalue = newvalue.replace('=','\=')
210
211 return newvalue
212
213 def unescape(self, value):
214

Callers 9

storeMethod · 0.95
replace_identifierFunction · 0.45
__call__Method · 0.45
__init__Method · 0.45
handle_stringFunction · 0.45
__call__Method · 0.45
insertMethod · 0.45
updateMethod · 0.45
__setattr__Method · 0.45

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected