[Python-checkins] cpython (3.5): Issue #26881: Restored the name of scan_opcodes_25().

serhiy.storchaka python-checkins at python.org
Wed May 11 15:21:28 EDT 2016


https://hg.python.org/cpython/rev/f0a4d563b32e
changeset:   101298:f0a4d563b32e
branch:      3.5
parent:      101295:87130512ef34
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed May 11 22:19:49 2016 +0300
summary:
  Issue #26881: Restored the name of scan_opcodes_25().
It is better to not change this in bugfix release.

files:
  Lib/modulefinder.py |  5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/Lib/modulefinder.py b/Lib/modulefinder.py
--- a/Lib/modulefinder.py
+++ b/Lib/modulefinder.py
@@ -336,7 +336,8 @@
                         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 @@
 
     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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list