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

LocalPath no longer lowercases it's paths on win32 #39

Closed
wants to merge 1 commit into from

Conversation

obmarg
Copy link
Contributor

@obmarg obmarg commented Oct 15, 2012

This is the fix I've been using locally for #38. I'm not sure if it's correct, so feel free to reject the pull request if I've messed up somehow.

I've updated LocalPath to not call str.lower() on paths that are passed in to it. The base Path class calls str.lower() before doing any comparisons already so it seems like this was a bit redundant.

Also updated Path.hash to call str.lower on the path before hashing when on windows so that behaviour in dictionaries etc. is consistent.

This commit updates LocalPath to not call str.lower() on paths that are
passed in to it.  The base Path class calls str.lower() before doing any
comparisons already so it seems like this was a bit redundant.

Also updated Path.__hash__ to call str.lower on the path before hashing
when on windows so that behaviour in dictionaries etc. is consistent.
@tomerfiliba
Copy link
Owner

thanks! i'll look into it

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