/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/http_server.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2017-05-25 00:24:23 UTC
  • mfrom: (6631.4.2 unfiltered)
  • Revision ID: breezy.the.bot@gmail.com-20170525002423-m8b8kq9i4loqntez
Remove some uses of filter that confused things

Merged from https://code.launchpad.net/~gz/brz/unfiltered/+merge/324570

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
        path = posixpath.normpath(urlutils.unquote(path))
343
343
        path = path.decode('utf-8')
344
344
        words = path.split('/')
345
 
        words = filter(None, words)
346
345
        path = self._cwd
347
 
        for num, word in enumerate(words):
 
346
        for num, word in enumerate(w for w in words if w):
348
347
            if num == 0:
349
348
                drive, word = os.path.splitdrive(word)
350
349
            head, word = os.path.split(word)