Rev 5261: (mbp) doc: don't use try/except/finally (Martin Pool) in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu May 27 03:20:31 BST 2010


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5261 [merge]
revision-id: pqm at pqm.ubuntu.com-20100527022030-wz9f4rvm9rfk6r59
parent: pqm at pqm.ubuntu.com-20100527020027-9vv0212agl257rt7
parent: mbp at canonical.com-20100527020611-1745fwxjpcs93or7
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2010-05-27 03:20:30 +0100
message:
  (mbp) doc: don't use try/except/finally (Martin Pool)
modified:
  doc/developers/code-style.txt  codestyle.txt-20100515105711-133ealf7ereiq2eq-1
=== modified file 'doc/developers/code-style.txt'
--- a/doc/developers/code-style.txt	2010-05-16 09:29:44 +0000
+++ b/doc/developers/code-style.txt	2010-05-27 02:06:11 +0000
@@ -84,8 +84,12 @@
 
 Specifically:
 
- * don't use the ``with`` statement
- * don't ``from . import``
+ * Don't use the ``with`` statement.
+
+ * Don't ``from . import``.
+
+ * Don't use ``try/except/finally``, which is not supported in Python2.4,
+   use separate nested ``try/except`` and ``try/finally`` blocks.
 
 
 hasattr and getattr




More information about the bazaar-commits mailing list