]> granicus.if.org Git - python/commitdiff
Issue #26881: Restored the name of scan_opcodes_25().
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 11 May 2016 19:19:49 +0000 (22:19 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 11 May 2016 19:19:49 +0000 (22:19 +0300)
It is better to not change this in bugfix release.

Lib/modulefinder.py

index b8cce1f766b711d651cdb9a04313afcb31162b8b..8103502404d3bddfcc8064b11d26142fdf0db907 100644 (file)
@@ -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