0
0
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:
Cyrill Gorcunov 2020-09-17 01:13:25 +03:00
parent d85890aac7
commit f77ec1c803

View File

@ -182,7 +182,7 @@ def read_json(path):
try:
with open(path, "rb") as f:
try:
desc = json.loads(f.read().decode("utf-8").strip("\n"))
desc = json.loads(f.read().decode("utf-8"))
except:
desc = None
finally: