Commit 2298a03e authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #26881: Restored the name of scan_opcodes_25().

It is better to not change this in bugfix release.
parent 8337b161
...@@ -336,7 +336,8 @@ class ModuleFinder: ...@@ -336,7 +336,8 @@ class ModuleFinder:
fullname = name + "." + sub fullname = name + "." + sub
self._add_badmodule(fullname, caller) self._add_badmodule(fullname, caller)
def scan_opcodes(self, co): def scan_opcodes_25(self, co,
unpack = struct.unpack):
# Scan the code, and yield 'interesting' opcode combinations # Scan the code, and yield 'interesting' opcode combinations
code = co.co_code code = co.co_code
names = co.co_names names = co.co_names
...@@ -359,7 +360,7 @@ class ModuleFinder: ...@@ -359,7 +360,7 @@ class ModuleFinder:
def scan_code(self, co, m): def scan_code(self, co, m):
code = co.co_code code = co.co_code
scanner = self.scan_opcodes scanner = self.scan_opcodes_25
for what, args in scanner(co): for what, args in scanner(co):
if what == "store": if what == "store":
name, = args name, = args
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment