summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-02 07:50:54 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-02 07:50:54 +0000
commit2ea11722ca25a22659685e4b8020a9c52b933b6a (patch)
tree4f1f7c91cea611f01ba396ead5dd200e8915a587 /DEVELOPING
parentFix EbuildBuild.execute() to return os.EX_OK on success. (diff)
downloadportage-multirepo-2ea11722ca25a22659685e4b8020a9c52b933b6a.tar.gz
portage-multirepo-2ea11722ca25a22659685e4b8020a9c52b933b6a.tar.bz2
portage-multirepo-2ea11722ca25a22659685e4b8020a9c52b933b6a.zip
Py3k compatibility patch by Ali Polatel <hawking@g.o>.
Don't use the format raise Exception, "string" svn path=/main/trunk/; revision=10890
Diffstat (limited to 'DEVELOPING')
-rw-r--r--DEVELOPING12
1 files changed, 12 insertions, 0 deletions
diff --git a/DEVELOPING b/DEVELOPING
index cd9f78f9..8286a8bc 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
-------