From c445411fa847ab3a0e7517b79983647163849faa Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 16 Dec 2013 23:39:29 +0100 Subject: [PATCH] make intermediate goto-labels more readable by postfixing them with their purpose --- Cython/Compiler/Code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 1b4399f..c7aed82 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -574,9 +574,9 @@ class FunctionState(object): def all_new_labels(self): old_labels = self.get_all_labels() new_labels = [] - for old_label in old_labels: + for old_label, name in zip(old_labels, ['continue', 'break', 'return', 'error']): if old_label: - new_labels.append(self.new_label()) + new_labels.append(self.new_label(name)) else: new_labels.append(old_label) self.set_all_labels(new_labels) -- 2.7.4