From 393485ac1fbb6d9c6d4cb9721d4ed6af0311bc98 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 14 Dec 2013 17:29:37 +0100 Subject: [PATCH] minor code cleanup --HG-- extra : amend_source : c948151354a77be026c92d57abc151e51fb271c6 --- Cython/Compiler/Nodes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 904c289..3d3de17 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -6389,12 +6389,12 @@ class TryFinallyStatNode(StatNode): code.putln("/*finally:*/ {") cases_used = [] - error_label_used = 0 + error_label_used = False for i, new_label in enumerate(new_labels): - if new_label in code.labels_used: + if code.label_used(new_label): cases_used.append(i) if new_label == new_error_label: - error_label_used = 1 + error_label_used = True error_label_case = i if cases_used: @@ -6436,7 +6436,7 @@ class TryFinallyStatNode(StatNode): self.finally_clause.generate_execution_code(code) if error_label_used: - if finally_error_label in code.labels_used and self.preserve_exception: + if code.label_used(finally_error_label) and self.preserve_exception: over_label = code.new_label() code.put_goto(over_label) code.put_label(finally_error_label) -- 2.7.4