~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/__init__.py

  • Committer: Robert Collins
  • Date: 2005-10-23 11:46:19 UTC
  • Revision ID: robertc@robertcollins.net-20051023114619-cec8ca25207b1344
More quoting at the transport layer bugfixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
import os
28
28
from cStringIO import StringIO
 
29
import urllib
29
30
from zlib import adler32
30
31
 
31
32
import bzrlib
206
207
        # RBC 20051017 - TODO SOON, separate them again.
207
208
        self._suffixes = set()
208
209
 
 
210
    def _iter_files_recursive(self):
 
211
        """Iterate through the files in the transport."""
 
212
        for quoted_relpath in self._transport.iter_files_recursive():
 
213
            yield urllib.unquote(quoted_relpath)
 
214
 
209
215
    def __iter__(self):
210
 
        for relpath in self._transport.iter_files_recursive():
 
216
        for relpath in self._iter_files_recursive():
211
217
            # worst case is one of each suffix.
212
218
            name = os.path.basename(relpath)
213
219
            if name.endswith('.gz'):