~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textui.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-08 07:05:00 UTC
  • mfrom: (3376.2.15 no-asserts)
  • Revision ID: pqm@pqm.ubuntu.com-20080508070500-9zyyvsk0eev20t4w
(mbp) remove and disallow assert statements

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        kind_ch = '/'
26
26
    elif kind == 'symlink':
27
27
        kind_ch = '->'
 
28
    elif kind == 'file':
 
29
        kind_ch = ''
28
30
    else:
29
 
        assert kind == 'file', ("can't handle file of type %r" % kind)
30
 
        kind_ch = ''
 
31
        raise ValueError(kind)
31
32
 
32
 
    assert len(state) == 1
 
33
    if len(state) != 1:
 
34
        raise ValueError(state)
33
35
        
34
36
    if to_file is None:
35
37
        to_file = sys.stdout