-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fix for windows path formatting (backslash) #30
Conversation
Looks good to me. That Travis failure has nothing to do with your patch (it's a bit flaky :/ ) I squashed the two commits b/c I don't think the intermediate fellow was terribly valuable. Thanks for the fix! |
Sigh.. just kidding, I didn't look at that Travis carefully enough. Your approach doesn't work for Python2 (it repr's strings differently). According to the internet, you can use |
Strange, repr should be just the same between python2 and python3? I'm using python2 anyway:
Your solution won't work if there are escape sequences in the path:
|
Interesting... okay, so jumping back to your original approach, this is the failure I see on py2k:
And relevant bits from the output test:
Notice that the file path ends up with unbalanced quotes in the string. I suspect it's an artifact of the
but in general it's giving me pause that the Thoughts on another way to handle this? |
slicing a repr seems to be a bad idea, I adjusted that part and created a new pull request |
No description provided.