-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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 python2 str() in visualization #5093
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5093 +/- ##
=======================================
Coverage 77.53% 77.53%
=======================================
Files 44 44
Lines 8710 8710
=======================================
Hits 6753 6753
Misses 1957 1957
Continue to review full report at Codecov.
|
One nice way to fix these is by importing |
I found this issue while using python2.7, don't use str here. actually, I think it's not right to use str() here even with python2.7, eg, utf8 bytes, chinese characters will raise exception. @xrmx the origin patch was - series_title = [str(title) for title in name] + series_title = [title for title in name] elif isinstance(name, tuple): - series_title = tuple(str(title) for title in name) + series_title = tuple(title for title in name) else: - series_title = str(name) + series_title = name and run gunicore with PYTHONIOENCODING="utf8" to fix that. and I git log the history, found the refered commit. and that way seems easy for guys to handle. |
@xrmx |
refers to 3ed8f5f by timifasubaa