~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Andrew Bennetts
  • Date: 2007-08-30 08:11:54 UTC
  • mfrom: (2766 +trunk)
  • mto: (2535.3.55 repo-refactor)
  • mto: This revision was merged to the branch mainline in revision 2772.
  • Revision ID: andrew.bennetts@canonical.com-20070830081154-16hebp2xwr15x2hc
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        path = environ[self.path_var]
77
77
        suffix = '/.bzr/smart'
78
78
        if not (path.startswith(self.prefix) and path.endswith(suffix)):
79
 
            start_response('404 Not Found', {})
 
79
            start_response('404 Not Found', [])
80
80
            return []
81
81
        environ['bzrlib.relpath'] = path[len(self.prefix):-len(suffix)]
82
82
        return self.app(environ, start_response)