diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-11 19:19:49 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-11 19:19:49 (GMT) |
commit | ec5d54575f176b0c198db4cd7aa306fb69152088 (patch) | |
tree | 0629421d8dfa8e673f0e6ece395ba89307d37f0b /Lib | |
parent | 3414e4a34ffc14a57e717a445b8ca5dcd00208cf (diff) | |
download | cpython-ec5d54575f176b0c198db4cd7aa306fb69152088.zip cpython-ec5d54575f176b0c198db4cd7aa306fb69152088.tar.gz cpython-ec5d54575f176b0c198db4cd7aa306fb69152088.tar.bz2 |
Issue #26881: Restored the name of scan_opcodes_25().
It is better to not change this in bugfix release.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/modulefinder.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/modulefinder.py b/Lib/modulefinder.py index b8cce1f..8103502 100644 --- a/Lib/modulefinder.py +++ b/Lib/modulefinder.py @@ -336,7 +336,8 @@ class ModuleFinder: fullname = name + "." + sub 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 code = co.co_code names = co.co_names @@ -359,7 +360,7 @@ class ModuleFinder: def scan_code(self, co, m): code = co.co_code - scanner = self.scan_opcodes + scanner = self.scan_opcodes_25 for what, args in scanner(co): if what == "store": name, = args |