~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mail_client.py

  • Committer: Aaron Bentley
  • Date: 2007-08-13 14:06:01 UTC
  • mto: (2681.5.3 bzr-mail)
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: abentley@panoramicfeedback.com-20070813140601-hgde4ujjhd9saagg
Make conditional import explicit

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    osutils,
28
28
    urlutils,
29
29
    )
30
 
from bzrlib.lazy_import import lazy_import
31
 
lazy_import(globals(), """
32
 
import win32utils
33
 
""")
34
30
 
35
31
 
36
32
class MailClient(object):
79
75
 
80
76
    def _get_client_commands(self):
81
77
        if sys.platform == 'win32':
 
78
            import win32utils
82
79
            return [win32utils.get_app_path(i) for i in self._client_commands]
83
80
        else:
84
81
            return self._client_commands