79 Star 455 Fork 144

OpenHarmony / ace_lite_jsfwk

Closed
!10 fix: TypeError: %x format: a number is required, not str

justjavac:master OpenHarmony:master

justjavac Created on: 2020-09-14 12:42
Reviewer:   Tester: 7387629 wx 43dedfcaf7 1585550518

tools/snapshot/framework2char.py 文件中读取文件然后转成十六进制存在 bug。报错“TypeError: %x format: a number is required, not str”。

input_file.read 读到的是字符串,但是 '0x%02x' 中接受的是数字。这段代码的逻辑应该是把每个字符的 ascii 码转成十六进制。

3 comments, 2 participants 529 justjavac 1578913817

Show action logs Hide action logs
justjavac closed Pull Request 2020-09-14 16:03
justjavac assigned tester openharmony_ci 2020-09-14 12:42
justjavac assigned reviewer borne 2020-09-14 12:42
C++
1
https://git.oschina.net/openharmony/ace_lite_jsfwk.git
git@git.oschina.net:openharmony/ace_lite_jsfwk.git
openharmony
ace_lite_jsfwk
ace_lite_jsfwk

Search

152606 8668e384 1899542 133635 2cd7d36e 1899542