~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32utils.py

  • Committer: Martin Pool
  • Date: 2011-06-11 01:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 5970.
  • Revision ID: mbp@canonical.com-20110611011143-a6ovwjohrmls4kyu
Don't try to get ctypes access to OpenProcess on non-win32 platforms

Show diffs side-by-side

added added

removed removed

Lines of Context:
593
593
        handle.close()
594
594
        return False
595
595
    is_local_pid_dead = _pywin32_is_local_pid_dead
596
 
elif has_ctypes:
 
596
elif has_ctypes and sys.platform == 'win32':
597
597
    from ctypes.wintypes import BOOL, DWORD, HANDLE
598
598
    _kernel32 = ctypes.windll.kernel32
599
599
    _CloseHandle = ctypes.WINFUNCTYPE(BOOL, HANDLE)(