MCPcopy Index your code
hub / github.com/httprunner/httprunner / __init__

Method __init__

httprunner/thrift/data_convertor.py:330–355  ·  view source on GitHub ↗
(
        self,
        skipkeys=False,
        ensure_ascii=True,
        check_circular=True,
        allow_nan=True,
        indent=None,
        separators=None,
        default=None,
        sort_keys=False,
        **kw
    )

Source from the content-addressed store, hash-verified

328 """
329
330 def __init__(
331 self,
332 skipkeys=False,
333 ensure_ascii=True,
334 check_circular=True,
335 allow_nan=True,
336 indent=None,
337 separators=None,
338 default=None,
339 sort_keys=False,
340 **kw
341 ):
342
343 super(ThriftJSONEncoder, self).__init__(
344 skipkeys=skipkeys,
345 ensure_ascii=ensure_ascii,
346 check_circular=check_circular,
347 allow_nan=allow_nan,
348 indent=indent,
349 separators=separators,
350 default=default,
351 sort_keys=sort_keys,
352 )
353 self.skip_nonutf8_value = kw.get(
354 "skip_nonutf8_value", False
355 ) # 默认不skip忽略非utf-8编码的字段
356
357 def encode(self, o):
358 """Return a JSON string representation of a Python data structure.

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected