Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cclauss opened this issue Jan 23, 2025 · 0 comments
Open

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

cclauss opened this issue Jan 23, 2025 · 0 comments

Comments

@cclauss
Copy link

cclauss commented Jan 23, 2025

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant