mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user