Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Re-use old indent in json.loads() #118299

Closed as not planned
Closed as not planned
@nineteendo

Description

@nineteendo

Feature or enhancement

Proposal:

Currently the indent is generated from scratch for each depth:

_current_indent_level += 1
newline_indent = '\n' + _indent * _current_indent_level

We can easily re-use the old indent:

newline_indent = old_newline_indent + _indent

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions