~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-11 21:34:11 UTC
  • mto: (1185.11.1)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050711213411-e66967f569f16716
Fixed some encoding issues, added is_remote function for Transport objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        """
99
99
        raise NotImplementedError
100
100
 
 
101
    def is_remote(self):
 
102
        """Return True if the connection is not local.
 
103
        This would indicate that files should be cached, etc.
 
104
        """
 
105
        # Most transport mechanisms are going to be Remote.
 
106
        return True
 
107
 
101
108
    def _pump(self, from_file, to_file):
102
109
        """Most children will need to copy from one file-like 
103
110
        object or string to another one.