~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2006-04-15 00:17:38 UTC
  • mto: This revision was merged to the branch mainline in revision 1673.
  • Revision ID: aaron.bentley@utoronto.ca-20060415001738-09feeab6b5ee61d1
Add text_file function

Show diffs side-by-side

added added

removed removed

Lines of Context:
837
837
    """The method %(mname)s is not supported on objects of type %(tname)s."""
838
838
    def __init__(self, method, method_self):
839
839
        self.method = method
 
840
 
840
841
        self.mname = method.__name__
841
842
        self.tname = type(method_self).__name__
 
843
 
 
844
 
 
845
class BinaryFile(BzrNewError):
 
846
    """File is binary but should be text."""
 
847