Explorar el Código

Fix merging of EventTree lints

Alois Mahdal hace 6 años
padre
commit
d5de885367
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      src/python/jat.py

+ 3
- 2
src/python/jat.py Ver fichero

@@ -49,6 +49,7 @@ class EventTree(object):
49 49
         self.children = []
50 50
         self.rest = [e for e in events]
51 51
         self.head = head
52
+        self._lints = []
52 53
         while self.rest:
53 54
             if self.peek().startswith('SESSION.'):
54 55
                 self.pop()
@@ -75,7 +76,7 @@ class EventTree(object):
75 76
                 return out
76 77
             else:
77 78
                 out.append(self.pop())
78
-        self.lints += [Lint('could not find: %s' % final_etype, out)]
79
+        self._lints += [Lint('could not find: %s' % final_etype, out)]
79 80
         return out
80 81
 
81 82
     @property
@@ -83,7 +84,7 @@ class EventTree(object):
83 84
         lints = []
84 85
         for e in self.children:
85 86
             lints += e.lints
86
-        return lints
87
+        return self._lints + lints
87 88
 
88 89
 
89 90
 class Phase(EventTree):