From 6f097ff1cabcd7071b19f599b0bd611dc713dcca Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 29 Dec 2016 07:32:36 -0500 Subject: [PATCH] dectect_structure() -> detect_control_flow() --- uncompyle6/scanners/scanner2.py | 6 +++--- uncompyle6/scanners/scanner3.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/uncompyle6/scanners/scanner2.py b/uncompyle6/scanners/scanner2.py index af625ec6..2e6a3fe6 100644 --- a/uncompyle6/scanners/scanner2.py +++ b/uncompyle6/scanners/scanner2.py @@ -478,7 +478,7 @@ class Scanner2(scan.Scanner): elif op in self.setup_ops: count_SETUP_ += 1 - def detect_structure(self, offset, op): + def detect_control_flow(self, offset, op): """ Detect type of block structures and their boundaries to fix optimized jumps in python2.3+ @@ -955,7 +955,7 @@ class Scanner2(scan.Scanner): self.ignore_if = set() self.build_statement_indices() - # Containers filled by detect_structure() + # Containers filled by detect_control_flow() self.not_continue = set() self.return_end_ifs = set() self.setup_loop_targets = {} # target given setup_loop offset @@ -968,7 +968,7 @@ class Scanner2(scan.Scanner): # Determine structures and fix jumps in Python versions # since 2.3 - self.detect_structure(offset, op) + self.detect_control_flow(offset, op) if op_has_argument(op, self.opc): label = self.fixed_jumps.get(offset) diff --git a/uncompyle6/scanners/scanner3.py b/uncompyle6/scanners/scanner3.py index 1eb218bc..ca7bbbb0 100644 --- a/uncompyle6/scanners/scanner3.py +++ b/uncompyle6/scanners/scanner3.py @@ -441,7 +441,7 @@ class Scanner3(Scanner): self.build_statement_indices() self.else_start = {} - # Containers filled by detect_structure() + # Containers filled by detect_control_flow() self.not_continue = set() self.return_end_ifs = set() self.setup_loop_targets = {} # target given setup_loop offset @@ -453,7 +453,7 @@ class Scanner3(Scanner): # Determine structures and fix jumps in Python versions # since 2.3 - self.detect_structure(offset, targets) + self.detect_control_flow(offset, targets) has_arg = (op >= op3.HAVE_ARGUMENT) if has_arg: @@ -580,7 +580,7 @@ class Scanner3(Scanner): return target - def detect_structure(self, offset, targets): + def detect_control_flow(self, offset, targets): """ Detect structures and their boundaries to fix optimized jumps in python2.3+