~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/textui.py

  • Committer: Aaron Bentley
  • Date: 2006-06-14 19:45:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1777.
  • Revision ID: abentley@panoramicfeedback.com-20060614194557-6b499aa1cf03f7e6
Use create_signature for signing policy, deprecate check_signatures for this

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Bazaar -- distributed version control
 
1
# Bazaar-NG -- distributed version control
2
2
#
3
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
3
# Copyright (C) 2005, 2006 by Canonical Ltd
4
4
#
5
5
# This program is free software; you can redistribute it and/or modify
6
6
# it under the terms of the GNU General Public License as published by
25
25
        kind_ch = '/'
26
26
    elif kind == 'symlink':
27
27
        kind_ch = '->'
28
 
    elif kind == 'file':
 
28
    else:
 
29
        assert kind == 'file', ("can't handle file of type %r" % kind)
29
30
        kind_ch = ''
30
 
    else:
31
 
        raise ValueError(kind)
32
31
 
33
 
    if len(state) != 1:
34
 
        raise ValueError(state)
 
32
    assert len(state) == 1
35
33
        
36
34
    if to_file is None:
37
35
        to_file = sys.stdout