/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 bzrlib/smart/request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-26 11:31:26 UTC
  • mfrom: (4205.2.1 jail_info_thread_bug)
  • Revision ID: pqm@pqm.ubuntu.com-20090326113126-bj9spvf4ixrywxu3
(andrew) Fix BzrDir.open in non-main (and non-server-request) thread
        when bzrlib.smart.request's _pre_open_hook is installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
 
60
60
def _pre_open_hook(transport):
61
 
    allowed_transports = jail_info.transports
 
61
    allowed_transports = getattr(jail_info, 'transports', None)
62
62
    if allowed_transports is None:
63
63
        return
64
64
    abspath = transport.base