Skip to content

Further improves psutil's NamedTuples #6021

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

Merged
merged 4 commits into from
Sep 10, 2021
Merged

Further improves psutil's NamedTuples #6021

merged 4 commits into from
Sep 10, 2021

Conversation

sobolevn
Copy link
Member

No description provided.

@sobolevn
Copy link
Member Author

So, I guess

class popenfile(NamedTuple):
    path: str
    fd: int
    if sys.platform == "linux":
        position: int
        mode: str
        flags: int

Should be:

if sys.platform == "linux":
    class popenfile(NamedTuple):
        path: str
        fd: int
        position: int
        mode: str
        flags: int
else:
    class popenfile(NamedTuple):
        path: str
        fd: int

@srittau srittau merged commit 7d41e67 into python:master Sep 10, 2021
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

Successfully merging this pull request may close these issues.

2 participants