mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
nasm-t: no need to strip json files
The json library can handle newlines by self. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
d85890aac7
commit
f77ec1c803
@ -182,7 +182,7 @@ def read_json(path):
|
|||||||
try:
|
try:
|
||||||
with open(path, "rb") as f:
|
with open(path, "rb") as f:
|
||||||
try:
|
try:
|
||||||
desc = json.loads(f.read().decode("utf-8").strip("\n"))
|
desc = json.loads(f.read().decode("utf-8"))
|
||||||
except:
|
except:
|
||||||
desc = None
|
desc = None
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user