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

Wrong type used in unidecode in python2. #26

Open
kazz-s opened this issue Nov 30, 2017 · 1 comment
Open

Wrong type used in unidecode in python2. #26

kazz-s opened this issue Nov 30, 2017 · 1 comment

Comments

@kazz-s
Copy link

kazz-s commented Nov 30, 2017

new = ''.join(rv).strip()

Here if rv happens to be an empty list then type of new will be regular string not Unicode.
When called unidecode on it confusing warnings appears.

@nitely
Copy link
Contributor

nitely commented Jun 15, 2018

I don't think so. Try print(type(new)). There is a from __future__ import unicode_literals import, so the literal string there should be a unicode string.

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

No branches or pull requests

2 participants