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

Use python-magic API when available #1097

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

danigm
Copy link
Member

@danigm danigm commented Aug 3, 2023

The usage of the python-magic -> libmagic API comatibility [1] raises a deprecation warning. This patch uses the python-magic default API when it's available and in other case it uses the libmagic default API.

Fix #1083

[1] https://github.com/ahupp/python-magic/blob/master/COMPAT.md

The usage of the python-magic -> libmagic API comatibility [1] raises a
deprecation warning. This patch uses the python-magic default API when
it's available and in other case it uses the libmagic default API.

Fix rpm-software-management#1083

[1] https://github.com/ahupp/python-magic/blob/master/COMPAT.md
@danigm danigm merged commit 389de24 into rpm-software-management:main Aug 3, 2023
13 checks passed
@danigm danigm deleted the magic-warnings branch August 3, 2023 10:19
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.

Pytest Warnings in OpenSUSE distributions
1 participant