Skip to content

unidecode vs text_unidecode import resolution order - #126

Merged
un33k merged 1 commit into
un33k:masterfrom
enkidulan:patch-1
Jan 27, 2023
Merged

un33k merged 1 commit into
un33k:masterfrom
enkidulan:patch-1

Conversation

@enkidulan

@enkidulan enkidulan commented Jan 27, 2023 •

Copy link
Copy Markdown
Contributor

The way the code is now unidecode library is just getting ignored.
text_unidecode is install_requires and is always present in the python environment, so it makes sense to try importing the optional dependency unidecode first and only then fallback to text_unidecode.

AS is `text_unidecode` is install_requires it is always present in the python environment, 
it makes sense to try import optinal dependency `unidecode` first, and only then fallback 
to `text_unidecode`.
@un33k
un33k merged commit 22d7e84 into un33k:master Jan 27, 2023
@un33k

un33k commented Jan 27, 2023

Copy link
Copy Markdown
Owner

Excellent. Thank you.

@un33k

un33k commented Jan 28, 2023

Copy link
Copy Markdown
Owner

Version 8.0.0 is pushed. Thx

@enkidulan

Copy link
Copy Markdown
Contributor Author

Thank you so much!

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