~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2010-05-27 02:06:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5261.
  • Revision ID: mbp@canonical.com-20100527020611-1745fwxjpcs93or7
Don't use try/except/finally

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