From 71d361e188219b73c14858cf51c333795228f92e Mon Sep 17 00:00:00 2001
From: "Anders H. Rebner" <anderhre@stud.ntnu.no>
Date: Thu, 26 Mar 2020 17:57:49 +0100
Subject: [PATCH] Apply suggestion to soitool/serialize_export_import_soi.py

---
 soitool/serialize_export_import_soi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/soitool/serialize_export_import_soi.py b/soitool/serialize_export_import_soi.py
index 8e5356c..e2cce5b 100644
--- a/soitool/serialize_export_import_soi.py
+++ b/soitool/serialize_export_import_soi.py
@@ -134,7 +134,7 @@ def import_soi(file_path):
         If 'type' of module or attachment is not implemented.
     """
     with open(file_path, "r") as file:
-        if file_path[-4::] == ".txt":
+        if file_path.endswith(".txt"):
             serialized = literal_eval(decompress(file.read()))
         else:
             serialized = literal_eval(file.read())
-- 
GitLab