Closed jjmaestro closed 12 years ago
The initial structure was:
if a: if b: print '1' else: print '2' else: if b: print '1' else: if c: print '3' else: print '4'
which can be clearly simplified to
if b: print '1' elif a: print '2' elif c: print '3' else: print '4'
Thus, the refactor :) In my opinion, it simplifies the whole conditional flow quite a bit and that's always nice :D
Merged, thanks for the Patch Javier.
Cheers, Miguel
The initial structure was:
which can be clearly simplified to
Thus, the refactor :) In my opinion, it simplifies the whole conditional flow quite a bit and that's always nice :D