mercurial/util_win32.py
changeset 3886 abaee83ce0a6
parent 3721 98f2507c5551
child 3893 6b4127c7d52a
equal deleted inserted replaced
3885:1e0b94cfba0e 3886:abaee83ce0a6
    11 # available, import of this module will fail, and generic code will be
    11 # available, import of this module will fail, and generic code will be
    12 # used.
    12 # used.
    13 
    13 
    14 import win32api
    14 import win32api
    15 
    15 
    16 from demandload import *
       
    17 from i18n import gettext as _
    16 from i18n import gettext as _
    18 demandload(globals(), 'errno os pywintypes win32con win32file win32process')
    17 import errno, os, pywintypes, win32con, win32file, win32process
    19 demandload(globals(), 'cStringIO win32com.shell:shell,shellcon winerror')
    18 import cStringIO, winerror
       
    19 from win32com.shell import shell,shellcon
    20 
    20 
    21 class WinError:
    21 class WinError:
    22     winerror_map = {
    22     winerror_map = {
    23         winerror.ERROR_ACCESS_DENIED: errno.EACCES,
    23         winerror.ERROR_ACCESS_DENIED: errno.EACCES,
    24         winerror.ERROR_ACCOUNT_DISABLED: errno.EACCES,
    24         winerror.ERROR_ACCOUNT_DISABLED: errno.EACCES,