Esempio n. 1
0
 def _items(self):
     # type: () -> Any
     for x in ordereddict.__iter__(self):
         yield x, ordereddict.__getitem__(self, x)
     done = []  # type: List[Any]  # list of processed merge items, kept for masking
     for merged in getattr(self, merge_attrib, []):
         for x, v in merged[1].items():
             if ordereddict.__contains__(self, x):
                 continue
             for y in done:
                 if x in y:
                     break
             else:
                 yield x, v  # ordereddict.__getitem__(merged[1], x)
         done.append(merged[1])
Esempio n. 2
0
 def _items(self):
     # type: () -> Any
     for x in ordereddict.__iter__(self):
         yield x, ordereddict.__getitem__(self, x)
     done = [
     ]  # type: List[Any]  # list of processed merge items, kept for masking
     for merged in getattr(self, merge_attrib, []):
         for x, v in merged[1].items():
             if ordereddict.__contains__(self, x):
                 continue
             for y in done:
                 if x in y:
                     break
             else:
                 yield x, v  # ordereddict.__getitem__(merged[1], x)
         done.append(merged[1])
Esempio n. 3
0
 def non_merged_items(self):
     # type: () -> Any
     for x in ordereddict.__iter__(self):
         yield x, ordereddict.__getitem__(self, x)
Esempio n. 4
0
 def _items(self):
     # type: () -> Any
     for x in ordereddict.__iter__(self):
         yield x, ordereddict.__getitem__(self, x)
Esempio n. 5
0
 def _keys(self):
     # type: () -> Any
     for x in ordereddict.__iter__(self):
         yield x
Esempio n. 6
0
 def non_merged_items(self):
     # type: () -> Any
     for x in ordereddict.__iter__(self):
         if x in self._ok:
             yield x, ordereddict.__getitem__(self, x)