mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-16 21:20:14 +00:00
Merge pull request #586 from 4577/patch-1
Python 3 compatibility: raise unicode exception messages
This commit is contained in:
commit
fa12de87f9
|
@ -156,7 +156,7 @@ class UcError(Exception):
|
||||||
self.errno = errno
|
self.errno = errno
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return _uc.uc_strerror(self.errno)
|
return _uc.uc_strerror(self.errno).decode('ascii')
|
||||||
|
|
||||||
|
|
||||||
# return the core's version
|
# return the core's version
|
||||||
|
|
Loading…
Reference in a new issue