On Tue, Mar 30, 2010 at 12:51 PM, Zubin Mithra <zubin.mithra(a)gmail.com> wrote:
Hello,
I just went through the cobbler code base and found a few points worth
querying.
1. Why is it that the default spacing used is that of 3 spaces when 4 spaces
could have been used to achieve pep compliance too?
2. None of the "except" blocks in the code base have a type; this is not a
good practice. I feel this should be put up as a ticket.
for eg:-
try:
import <something>
except ImportError:
<do something>
Zubin Mithra
Most of the try/except blocks that do imports are for supporting
backward-compatibility with older versions of python and RHEL.
RHEL 5 ships with python 2.4.
RHEL 4 ships with python 2.3.
So, with the module name changes in python 2.5 and 2.6, this is about
the only way we can support these older versions of python.
---Brett.