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

loader.py: Separate functions for each operating system #329

Merged
merged 1 commit into from
May 26, 2024

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented May 22, 2024

Separate functions for each operating system.

+ def _lib_candidates_linux():
+     """Yield possible libmagic library names on Linux."""
+
+ def _lib_candidates_macos():
+     """Yield possible libmagic library names on macOS."""
+
+ def _lib_candidates_windows():
+     """Yield possible libmagic library names on Windows."""

Related to:

@cclauss cclauss changed the title Clean up loader.py loader.py: Separate functions for each operating system May 22, 2024
magic/loader.py Show resolved Hide resolved
@ahupp ahupp merged commit cf21065 into ahupp:master May 26, 2024
7 checks passed
@ahupp
Copy link
Owner

ahupp commented May 26, 2024

Seems reasonable, thanks!

@cclauss cclauss deleted the clean-up-loader branch May 26, 2024 10:27
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