From: Stefan Behnel Date: Mon, 16 Dec 2013 22:39:29 +0000 (+0100) Subject: make intermediate goto-labels more readable by postfixing them with their purpose X-Git-Tag: 0.20b1~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c445411fa847ab3a0e7517b79983647163849faa;p=platform%2Fupstream%2Fpython-cython.git make intermediate goto-labels more readable by postfixing them with their purpose --- 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)