~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-09 00:50:42 UTC
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: john@arbash-meinel.com-20060809005042-818f9535c3fd5e7e
Add a test suite for Atomic File, and clean it up so that it really does set the mode properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
304
304
(use bzr checkout if you wish to build a working tree): %(path)s"""
305
305
 
306
306
 
 
307
class AtomicFileAlreadyClosed(PathError):
 
308
    """'%(function)s' called on an AtomicFile after it was closed: %(path)s"""
 
309
 
 
310
    def __init__(self, path, function):
 
311
        PathError.__init__(self, path=path, extra=None)
 
312
        self.function = function
 
313
 
 
314
 
307
315
class NoRepositoryPresent(BzrNewError):
308
316
    """No repository present: %(path)r"""
309
317
    def __init__(self, bzrdir):