/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/plugins/launchpad/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-07 10:57:37 UTC
  • mfrom: (4511.1.1 lp-bzr.exe)
  • Revision ID: pqm@pqm.ubuntu.com-20090707105737-6s1x97fbhihlpvli
(bialix) launchpad plugin: import webbrowse should be explicit and
        never lazy, otherwise bzr.exe lacks this module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
from bzrlib.lazy_import import lazy_import
28
28
lazy_import(globals(), """
29
 
import webbrowser
30
 
 
31
29
from bzrlib import (
32
30
    branch as _mod_branch,
33
31
    trace,
196
194
        web_url = self._get_web_url(LaunchpadService(), location)
197
195
        trace.note('Opening %s in web browser' % web_url)
198
196
        if not dry_run:
 
197
            import webbrowser   # this import should not be lazy
 
198
                                # otherwise bzr.exe lacks this module
199
199
            webbrowser.open(web_url)
200
200
 
201
201
register_command(cmd_launchpad_open)