(self, file=sys.stdout)
| 3133 | self._properties["rootObject"].ComputeIDs(recursive, overwrite, hash) |
| 3134 | |
| 3135 | def Print(self, file=sys.stdout): |
| 3136 | self.VerifyHasRequiredProperties() |
| 3137 | |
| 3138 | # Add the special "objects" property, which will be caught and handled |
| 3139 | # separately during printing. This structure allows a fairly standard |
| 3140 | # loop do the normal printing. |
| 3141 | self._properties["objects"] = {} |
| 3142 | self._XCPrint(file, 0, "// !$*UTF8*$!\n") |
| 3143 | if self._should_print_single_line: |
| 3144 | self._XCPrint(file, 0, "{ ") |
| 3145 | else: |
| 3146 | self._XCPrint(file, 0, "{\n") |
| 3147 | for property, value in sorted(self._properties.items()): |
| 3148 | if property == "objects": |
| 3149 | self._PrintObjects(file) |
| 3150 | else: |
| 3151 | self._XCKVPrint(file, 1, property, value) |
| 3152 | self._XCPrint(file, 0, "}\n") |
| 3153 | del self._properties["objects"] |
| 3154 | |
| 3155 | def _PrintObjects(self, file): |
| 3156 | if self._should_print_single_line: |
nothing calls this directly
no test coverage detected