MCPcopy Create free account
hub / github.com/simplejson/simplejson / _encoder

Method _encoder

simplejson/encoder.py:340–343  ·  view source on GitHub ↗
(o, _orig_encoder=_encoder, _encoding=self.encoding)

Source from the content-addressed store, hash-verified

338 _encoder = encode_basestring
339 if self.encoding != 'utf-8' and self.encoding is not None:
340 def _encoder(o, _orig_encoder=_encoder, _encoding=self.encoding):
341 if isinstance(o, binary_type):
342 o = text_type(o, _encoding)
343 return _orig_encoder(o)
344
345 def floatstr(o, allow_nan=self.allow_nan, ignore_nan=self.ignore_nan,
346 _repr=FLOAT_REPR, _inf=PosInf, _neginf=-PosInf):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected