~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2008-05-08 04:21:01 UTC
  • mto: This revision was merged to the branch mainline in revision 3415.
  • Revision ID: mbp@sourcefrog.net-20080508042101-c9c0dmqo4not47qm
Compare to None using is/is not not ==

Show diffs side-by-side

added added

removed removed

Lines of Context:
398
398
            if line.startswith(':') and line.endswith(':') and len(line) > 2:
399
399
                save_section(sections, label, section)
400
400
                label,section = line[1:-1],''
401
 
            elif label != None and len(line) > 1 and not line[0].isspace():
 
401
            elif (label is not None) and len(line) > 1 and not line[0].isspace():
402
402
                save_section(sections, label, section)
403
403
                label,section = None,line
404
404
            else: