Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9885677

Browse files
gh-104146: Remove unused 'second_pass_replacements' from clinic.py (#104147)
The code that manipulated 'second_pass_replacements' was removed in 2015with commit 0759f84 (gh-67688,bpo-23500).
1 parente95dd40 commit9885677

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

‎Tools/clinic/clinic.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,8 +2112,6 @@ def parse(self, input):
21122112
traceback.format_exc().rstrip())
21132113
printer.print_block(block)
21142114

2115-
second_pass_replacements= {}
2116-
21172115
# these are destinations not buffers
21182116
forname,destinationinself.destinations.items():
21192117
ifdestination.type=='suppress':
@@ -2155,23 +2153,8 @@ def parse(self, input):
21552153
printer_2.print_block(block,core_includes=True)
21562154
write_file(destination.filename,printer_2.f.getvalue())
21572155
continue
2158-
text=printer.f.getvalue()
2159-
2160-
ifsecond_pass_replacements:
2161-
printer_2=BlockPrinter(self.language)
2162-
parser_2=BlockParser(text,self.language)
2163-
changed=False
2164-
forblockinparser_2:
2165-
ifblock.dsl_name:
2166-
forid,replacementinsecond_pass_replacements.items():
2167-
ifidinblock.output:
2168-
changed=True
2169-
block.output=block.output.replace(id,replacement)
2170-
printer_2.print_block(block)
2171-
ifchanged:
2172-
text=printer_2.f.getvalue()
2173-
2174-
returntext
2156+
2157+
returnprinter.f.getvalue()
21752158

21762159

21772160
def_module_and_class(self,fields):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp