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

Update clean_name to handle pathlib.Path names. #1189

Closed
wants to merge 1 commit into from

Conversation

m000
Copy link

@m000 m000 commented Oct 27, 2022

No description provided.

@jschneier
Copy link
Owner

Thanks, can you add a test?

@jschneier
Copy link
Owner

Also needs a rebase.

@@ -32,6 +33,10 @@ def clean_name(name):
"""
Cleans the name so that Windows style paths work
"""
# Convert pathlib.Path to string.
if isinstance(name, Path):
name = str(Path)
Copy link
Owner

Choose a reason for hiding this comment

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

Also this should be str(name).

@jschneier
Copy link
Owner

Thanks for the patch, I've cleaned this up and will merge in #1200.

@jschneier jschneier closed this Dec 18, 2022
@m000
Copy link
Author

m000 commented Jan 4, 2023

@jschneier Thanks! Sorry I couldn't pick it up again on time.

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