Closed davidlatwe closed 4 years ago
@davidlatwe could it be worth it potentially adding a test for this too or would it be overly verbose? Other than that, nice and clean solution!
Yeah, I was thinking about adding a test case for this, too ! But maybe tomorrow, I am just about to go out now. ☺️
Nice one. :) Yes, test would be good, just an additional file with lots of unicode should suffice. And if all existing tests pass already then that's already a giant confirmation it works.
Test case added !
Looks good, nice work. :)
What's changed
Some of our plugins contain Unicode characters in plugin's
label
attribute or doc string. Those plugins which registered in plugin path can be discovered via Pyblish in Python 2 but fails in Python 3 due to bytes encoding issue.The solution was simple, just change the
open
mode into"rb"
inapi.discover
.Example
pyblish.api.discover
to see the test result