Przeglądaj źródła

t.register: strip newline from list of maps to avoid error (#1295)

Anna Petrasova 4 lat temu
rodzic
commit
e750701c9d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/python/temporal/register.py

+ 1 - 1
lib/python/temporal/register.py

@@ -137,7 +137,7 @@ def register_maps_in_space_time_dataset(
 
         line = True
         while True:
-            line = fd.readline()
+            line = fd.readline().strip()
             if not line:
                 break