~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/code-style.txt

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-27 02:20:30 UTC
  • mfrom: (5260.1.1 doc)
  • Revision ID: pqm@pqm.ubuntu.com-20100527022030-wz9f4rvm9rfk6r59
(mbp) doc: don't use try/except/finally (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
Specifically:
86
86
 
87
 
 * don't use the ``with`` statement
88
 
 * don't ``from . import``
 
87
 * Don't use the ``with`` statement.
 
88
 
 
89
 * Don't ``from . import``.
 
90
 
 
91
 * Don't use ``try/except/finally``, which is not supported in Python2.4,
 
92
   use separate nested ``try/except`` and ``try/finally`` blocks.
89
93
 
90
94
 
91
95
hasattr and getattr