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

support unicode filenames #121

Closed
wants to merge 1 commit into from
Closed

support unicode filenames #121

wants to merge 1 commit into from

Conversation

bmcfee
Copy link

@bmcfee bmcfee commented Mar 28, 2015

I ran into a problem when one of my filenames was u'file.ogg' rather than 'file.ogg' (str).

This patch swaps out the string type-check for six.string_types. (I also threw it on mode while we're at it.)

This does add a dependency on the six module, so I understand if you'd prefer to do it manually instead.

Probably, there are other places where the code can be patched up to work more smoothly with unicode and/or general py2/py3 compatibility. I haven't done a thorough check though.

@mgeier
Copy link
Contributor

mgeier commented Mar 28, 2015

Incidentally, I created a PR for the same problem a few days ago: #119.
Mine doesn't add another dependency and it (hopefully) takes care of the other places where str() was used before.

Can you please review/improve #119?

@bmcfee
Copy link
Author

bmcfee commented Mar 28, 2015

Ah! Apologies for not checking outstanding pr's first. I'll take a look.

@bmcfee
Copy link
Author

bmcfee commented Mar 28, 2015

Ok, looks like yours is indeed much more comprehensive. Not sure I have anything to add at this point, but thanks for the quick response!

Closing this one.

@bmcfee bmcfee closed this Mar 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants