Fix: 修复electron环境下ampy读取文件时的中文乱码问题

This commit is contained in:
王立帮
2024-08-18 01:53:56 +08:00
parent 36428283e7
commit 996a239b11
4 changed files with 9 additions and 6 deletions

View File

@@ -21,7 +21,6 @@
# SOFTWARE.
import ast
import textwrap
import binascii
import sys
from pyboard import PyboardError
@@ -84,7 +83,7 @@ class Files(object):
except UnicodeDecodeError:
raise ex
self._pyboard.exit_raw_repl()
return binascii.unhexlify(out)
return out
def ls(self, directory="/", long_format=True, recursive=False, exit_repl=True):
"""List the contents of the specified directory (or root if none is