Processes the file contents.
(self, strip_expansion=False)
| 603 | return section |
| 604 | |
| 605 | def ProcessContent(self, strip_expansion=False): |
| 606 | """Processes the file contents.""" |
| 607 | self._ParseFile() |
| 608 | if strip_expansion: |
| 609 | # Without a collection the expansions become blank, removing them. |
| 610 | collection = None |
| 611 | else: |
| 612 | collection = MacroCollection() |
| 613 | for section in self._sections: |
| 614 | section.BindMacroCollection(collection) |
| 615 | result = '' |
| 616 | for section in self._sections: |
| 617 | result += section.text |
| 618 | self._processed_content = result |
| 619 | |
| 620 | @property |
| 621 | def original_content(self): |