(self, object, stream, indent, allowance, context, level)
| 272 | _dispatch[dict.__repr__] = _pprint_dict |
| 273 | |
| 274 | def _pprint_frozendict(self, object, stream, indent, allowance, context, level): |
| 275 | write = stream.write |
| 276 | cls = object.__class__ |
| 277 | if not len(object): |
| 278 | write(repr(object)) |
| 279 | return |
| 280 | |
| 281 | write(self._format_block_start(cls.__name__ + "({", indent)) |
| 282 | self._write_indent_padding(write) |
| 283 | |
| 284 | if self._sort_dicts: |
| 285 | items = sorted(object.items(), key=_safe_tuple) |
| 286 | else: |
| 287 | items = object.items() |
| 288 | self._format_dict_items( |
| 289 | items, |
| 290 | stream, |
| 291 | self._child_indent(indent, len(cls.__name__) + 1), |
| 292 | allowance + 2, |
| 293 | context, |
| 294 | level, |
| 295 | ) |
| 296 | write(self._format_block_end("})", indent)) |
| 297 | |
| 298 | _dispatch[frozendict.__repr__] = _pprint_frozendict |
| 299 |
nothing calls this directly
no test coverage detected