2021-04-13 14:20:56 +08:00
|
|
|
From 4f139d2803773c86e5cf557c879392e7b79238b3 Mon Sep 17 00:00:00 2001
|
2020-09-22 15:19:06 +08:00
|
|
|
From: lingsheng <lingsheng@huawei.com>
|
|
|
|
|
Date: Tue, 22 Sep 2020 14:40:35 +0800
|
2021-04-13 14:20:56 +08:00
|
|
|
Subject: [PATCH 3/6] Fix crit x UnicodeDecodeError
|
2020-09-22 15:19:06 +08:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
lib/py/cli.py | 2 +-
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/lib/py/cli.py b/lib/py/cli.py
|
|
|
|
|
index 966dd4e..f7bda23 100755
|
|
|
|
|
--- a/lib/py/cli.py
|
|
|
|
|
+++ b/lib/py/cli.py
|
|
|
|
|
@@ -25,7 +25,7 @@ def outf(opts):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def dinf(opts, name):
|
|
|
|
|
- return open(os.path.join(opts['dir'], name))
|
|
|
|
|
+ return open(os.path.join(opts['dir'], name), 'rb')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def decode(opts):
|
|
|
|
|
--
|
2021-04-13 14:20:56 +08:00
|
|
|
1.8.3.1
|
2020-09-22 15:19:06 +08:00
|
|
|
|