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

Fix __all__ on win32 #174

Merged
merged 2 commits into from
Aug 15, 2023
Merged

Fix __all__ on win32 #174

merged 2 commits into from
Aug 15, 2023

Conversation

srittau
Copy link
Contributor

@srittau srittau commented Aug 15, 2023

sendfile and statvfs are only defined when they are defined in the os module, i.e. not on win32. But they were added to __all__ unconditionally.

`sendfile` and `statvfs` are only defined when they are defined
in the `os` module, i.e. not on win32. But they were added to
`__all__` unconditionally.
@srittau
Copy link
Contributor Author

srittau commented Aug 15, 2023

For reference, I noticed this when updating the typeshed stubs, cf. python/typeshed#10584.

@Tinche
Copy link
Owner

Tinche commented Aug 15, 2023

Cool, thanks. Can you add a small history entry too?

@Tinche
Copy link
Owner

Tinche commented Aug 15, 2023

Thanks!

@Tinche Tinche merged commit 1456aa9 into Tinche:main Aug 15, 2023
16 checks passed
@srittau srittau deleted the os_all branch August 15, 2023 17:07
@srittau
Copy link
Contributor Author

srittau commented Aug 15, 2023

Thank you for the quick review!

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.

None yet

2 participants