Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

configparser.RawConfigParser._read is unmanageably complex #117348

Closed
Assignees
jaraco
Labels
stdlibPython modules in the Lib dirtriagedThe issue has been accepted as valid by a triager.type-featureA feature request or enhancement
@jaraco

Description

@jaraco

From the review:

This function is already unmanageably complex (and complexity checksdisabled in the backport). Adding this single boolean parameter has expanded this function from ~120 lines to almost 160 and increases the mccabe cyclometric complexity of this function from 25 to 31 (where a target complexity is <10).

cpython main @ pip-run mccabe -- -m mccabe --min 14 Lib/configparser.py940:4: 'RawConfigParser._read' 25 cpython main @ gh pr checkout 117273Switched to branch 'unnamed-section' cpython unnamed-section @ pip-run mccabe -- -m mccabe --min 14 Lib/configparser.py961:4: 'RawConfigParser._read' 31

Originally posted by@jaraco in#117273 (comment)

Linked PRs

Metadata

Metadata

Assignees

Labels

stdlibPython modules in the Lib dirtriagedThe issue has been accepted as valid by a triager.type-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp