mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat for mtp on unix error reporting
This commit is contained in:
parent
05776164d0
commit
0bdaf44cfb
@ -206,8 +206,7 @@ class MTP_DEVICE(MTPDeviceBase):
|
|||||||
self.dev = self._filesystem_cache = None
|
self.dev = self._filesystem_cache = None
|
||||||
|
|
||||||
def format_errorstack(self, errs):
|
def format_errorstack(self, errs):
|
||||||
return '\n'.join(['%d:%s'%(code, msg.decode('utf-8', 'replace')) for
|
return '\n'.join('%d:%s'%(code, as_unicode(msg)) for code, msg in errs)
|
||||||
code, msg in errs])
|
|
||||||
|
|
||||||
@synchronous
|
@synchronous
|
||||||
def open(self, connected_device, library_uuid):
|
def open(self, connected_device, library_uuid):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user