File tree 1 file changed +2
-19
lines changed
1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -2112,8 +2112,6 @@ def parse(self, input):
2112
2112
traceback .format_exc ().rstrip ())
2113
2113
printer .print_block (block )
2114
2114
2115
- second_pass_replacements = {}
2116
-
2117
2115
# these are destinations not buffers
2118
2116
for name , destination in self .destinations .items ():
2119
2117
if destination .type == 'suppress' :
@@ -2155,23 +2153,8 @@ def parse(self, input):
2155
2153
printer_2 .print_block (block , core_includes = True )
2156
2154
write_file (destination .filename , printer_2 .f .getvalue ())
2157
2155
continue
2158
- text = printer .f .getvalue ()
2159
-
2160
- if second_pass_replacements :
2161
- printer_2 = BlockPrinter (self .language )
2162
- parser_2 = BlockParser (text , self .language )
2163
- changed = False
2164
- for block in parser_2 :
2165
- if block .dsl_name :
2166
- for id , replacement in second_pass_replacements .items ():
2167
- if id in block .output :
2168
- changed = True
2169
- block .output = block .output .replace (id , replacement )
2170
- printer_2 .print_block (block )
2171
- if changed :
2172
- text = printer_2 .f .getvalue ()
2173
-
2174
- return text
2156
+
2157
+ return printer .f .getvalue ()
2175
2158
2176
2159
2177
2160
def _module_and_class (self , fields ):
You can’t perform that action at this time.
0 commit comments