mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
ldgen: fix issues when using pyparsing 2.3.0
This commit is contained in:
@@ -183,15 +183,20 @@ class Mapping(Fragment):
|
|||||||
def _process_entries(self):
|
def _process_entries(self):
|
||||||
processed = []
|
processed = []
|
||||||
|
|
||||||
for normal_group in self.entries.normal_groups:
|
for normal_group in self.entries[0]:
|
||||||
# Get the original string of the condition
|
# Get the original string of the condition
|
||||||
condition = next(iter(normal_group.condition.asList())).strip()
|
condition = next(iter(normal_group.condition.asList())).strip()
|
||||||
mappings = self._create_mappings_set(normal_group.mappings)
|
mappings = self._create_mappings_set(normal_group[1])
|
||||||
|
|
||||||
processed.append((condition, mappings))
|
processed.append((condition, mappings))
|
||||||
|
|
||||||
default_group = self.entries.default_group
|
default_group = self.entries[1]
|
||||||
mappings = self._create_mappings_set(default_group.mappings)
|
|
||||||
|
if len(default_group) > 1:
|
||||||
|
mappings = self._create_mappings_set(default_group[1])
|
||||||
|
else:
|
||||||
|
mappings = self._create_mappings_set(default_group[0])
|
||||||
|
|
||||||
processed.append(("default", mappings))
|
processed.append(("default", mappings))
|
||||||
|
|
||||||
self.entries = processed
|
self.entries = processed
|
||||||
|
Reference in New Issue
Block a user