/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2018-08-14 21:37:46 UTC
  • mto: This revision was merged to the branch mainline in revision 7083.
  • Revision ID: jelmer@jelmer.uk-20180814213746-oxx6tcn57k8k98ed
Fix an ignore test. Make AtomicFile a contextmanager.

Show diffs side-by-side

added added

removed removed

Lines of Context:
560
560
(use brz checkout if you wish to build a working tree): "%(path)s"'
561
561
 
562
562
 
563
 
class AtomicFileAlreadyClosed(PathError):
564
 
 
565
 
    _fmt = ('"%(function)s" called on an AtomicFile after it was closed:'
566
 
            ' "%(path)s"')
567
 
 
568
 
    def __init__(self, path, function):
569
 
        PathError.__init__(self, path=path, extra=None)
570
 
        self.function = function
571
 
 
572
 
 
573
563
class InaccessibleParent(PathError):
574
564
 
575
565
    _fmt = ('Parent not accessible given base "%(base)s" and'