~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Jelmer Vernooij
  • Date: 2010-01-31 12:18:35 UTC
  • mto: This revision was merged to the branch mainline in revision 4995.
  • Revision ID: jelmer@samba.org-20100131121835-wady4sv493my0buq
Rename Repository.serialise_inventory to Repository._serialise_inventory.

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)