MCPcopy Index your code
hub / github.com/clips/pattern / _encoder

Method _encoder

pattern/web/json/encoder.py:264–267  ·  view source on GitHub ↗
(o, _orig_encoder=_encoder, _encoding=self.encoding)

Source from the content-addressed store, hash-verified

262 _encoder = encode_basestring
263 if self.encoding != 'utf-8':
264 def _encoder(o, _orig_encoder=_encoder, _encoding=self.encoding):
265 if isinstance(o, str):
266 o = o.decode(_encoding)
267 return _orig_encoder(o)
268
269 def floatstr(o, allow_nan=self.allow_nan,
270 _repr=FLOAT_REPR, _inf=PosInf, _neginf=-PosInf):

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected