~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/response.py

  • Committer: Patch Queue Manager
  • Date: 2012-01-28 02:39:16 UTC
  • mfrom: (6352.4.6 get-seeks-backwards)
  • Revision ID: pqm@pqm.ubuntu.com-20120128023916-3eosqh9rfscupjb0
(jelmer) Avoid caching complete files in memory when accessing over HTTP.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        # Default to the whole file of unspecified size
83
83
        self.set_range(0, -1)
84
84
 
 
85
    def close(self):
 
86
        """Close this file.
 
87
 
 
88
        Dummy implementation for consistency with the 'file' API.
 
89
        """
 
90
 
85
91
    def set_range(self, start, size):
86
92
        """Change the range mapping"""
87
93
        self._start = start