~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-02 15:23:15 UTC
  • mfrom: (4996.3.1 trivial)
  • Revision ID: pqm@pqm.ubuntu.com-20100202152315-dzbzbhpwun9xpnj6
(mbp) remove contrib/fortune

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2009 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
179
179
    try:
180
180
        return _kind_marker_map[kind]
181
181
    except KeyError:
182
 
        # Slightly faster than using .get(, '') when the common case is that
183
 
        # kind will be found
184
 
        return ''
 
182
        raise errors.BzrError('invalid file kind %r' % kind)
185
183
 
186
184
 
187
185
lexists = getattr(os.path, 'lexists', None)