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

DM-43369: Use shutil.which instead of distutils #24

Merged
merged 4 commits into from Mar 19, 2024
Merged

Conversation

timj
Copy link
Member

@timj timj commented Mar 18, 2024

distutils is no longer part of python 3.12. shutil.which has been available since python 3.3.

distutils is no longer part of python 3.12. shutil.which has
been available since python 3.3.
@@ -365,10 +365,10 @@ def _setMaskTransparency(self, transparency, maskplane):
ignored.
"""
if maskplane is not None:
print("ds9 is unable to set transparency for individual maskplanes" % maskplane,
print(f"ds9 is unable to set transparency for individual maskplanes ({maskplane})",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was using % but didn't have anywhere to place the variable, so I added the variable to the end. I imagine this line doesn't get triggered very often.

@timj timj merged commit c28159a into main Mar 19, 2024
2 checks passed
@timj timj deleted the tickets/DM-43369 branch March 19, 2024 16:06
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