From 2ea11722ca25a22659685e4b8020a9c52b933b6a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 2 Jul 2008 07:50:54 +0000 Subject: Py3k compatibility patch by Ali Polatel . Don't use the format raise Exception, "string" svn path=/main/trunk/; revision=10890 --- DEVELOPING | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'DEVELOPING') diff --git a/DEVELOPING b/DEVELOPING index cd9f78f94..8286a8bcf 100644 --- a/DEVELOPING +++ b/DEVELOPING @@ -94,6 +94,18 @@ except KeyError: The get call is nicer (compact) and faster (try,except are slow). +Exceptions +---------- + +Don't use the format raise Exception, "string" +It will be removed in py3k. + +YES: + raise KeyError("No key") + +NO: + raise KeyError, "No key" + Imports ------- -- cgit v1.2.3-1-g7c22