[nasm:nasm-2.15.xx-travis] nasm-t: no need to strip json files

nasm-bot for Cyrill Gorcunov gorcunov at gmail.com
Wed Sep 16 15:24:10 PDT 2020


Commit-ID:  3965ad342b62134657e2d96c0925a6ba42b5e1ee
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=3965ad342b62134657e2d96c0925a6ba42b5e1ee
Author:     Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Thu, 17 Sep 2020 01:13:25 +0300
Committer:  Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Thu, 17 Sep 2020 01:13:25 +0300

nasm-t: no need to strip json files

The json library can handle newlines by self.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>


---
 travis/nasm-t.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/travis/nasm-t.py b/travis/nasm-t.py
index adcdbab9..ac976431 100755
--- a/travis/nasm-t.py
+++ b/travis/nasm-t.py
@@ -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:


More information about the Nasm-commits mailing list