Skip to content

Undefined name: list_cpusetstr() in sysreport/src/cpulist.py #6

@cclauss

Description

@cclauss

Where is the function list_cpusetstr() defined? It is called in sysreport/src/cpulist.py but it is not defined in this codebase or in pyperf.

% ruff check --output-format=concise # https://docs.astral.sh/ruff/linter

src/cpulist.py:371:39: F405 `list_cpusetstr` may be undefined, or defined from star imports
src/cpulist.py:372:39: F405 `list_cpusetstr` may be undefined, or defined from star imports

sysreport/src/cpulist.py

Lines 371 to 372 in ea35556

print(" package: %s" % list_cpusetstr(CPUlist_to_cpulist(self.system.cpus_by_package[p])))
print(" self.cpus: %s" % list_cpusetstr(self.cpus))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions