~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/readonly.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-05 21:20:24 UTC
  • mto: (1946.2.8 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1988.
  • Revision ID: john@arbash-meinel.com-20060905212024-39f58d0f5acd74a4
Deprecate 'Transport.append' in favor of Transport.append_file or Transport.append_bytes

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    This is requested via the 'readonly+' prefix to get_transport().
27
27
    """
28
28
 
29
 
    def append(self, relpath, f, mode=None):
30
 
        """See Transport.append()."""
 
29
    def append_file(self, relpath, f, mode=None):
 
30
        """See Transport.append_file()."""
 
31
        raise TransportNotPossible('readonly transport')
 
32
    
 
33
    def append_bytes(self, relpath, bytes, mode=None):
 
34
        """See Transport.append_bytes()."""
31
35
        raise TransportNotPossible('readonly transport')
32
36
    
33
37
    @classmethod