/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 bzrlib/errors.py

  • Committer: Jonathan Riddell
  • Date: 2011-06-01 15:41:09 UTC
  • mto: This revision was merged to the branch mainline in revision 5954.
  • Revision ID: jriddell@canonical.com-20110601154109-5518y8ul1qhscgri
in DecompressCorruption keep _fmt as a class member. in test use with for opening files

Show diffs side-by-side

added added

removed removed

Lines of Context:
3083
3083
 
3084
3084
class DecompressCorruption(BzrError):
3085
3085
 
 
3086
    _fmt = "Corruption while decompressing repository file%(orig_error)s"
3086
3087
 
3087
3088
    def __init__(self, orig_error=None):
3088
 
        if orig_error is None:
3089
 
            self._fmt = "Corruption while decompressing repository file"
 
3089
        if orig_error is not None:
 
3090
            self.orig_error = ", %s" % (orig_error,)
3090
3091
        else:
3091
 
            self._fmt = "Corruption while decompressing repository file, "\
3092
 
                        "%(orig_error)s"
3093
 
        self.orig_error = orig_error
 
3092
            self.orig_error = ""
3094
3093
        BzrError.__init__(self)
3095
3094
 
3096
3095