1 ''' |
1 # win32.py - utility functions that use win32 API |
2 win32.py - utility functions that use win32 API |
2 # |
3 |
3 # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others |
4 Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others |
4 # |
5 |
5 # This software may be used and distributed according to the terms of the |
6 This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2, incorporated herein by reference. |
7 GNU General Public License version 2, incorporated herein by reference. |
7 # |
8 |
8 # Mark Hammond's win32all package allows better functionality on |
9 Mark Hammond's win32all package allows better functionality on |
9 # Windows. this module overrides definitions in util.py. if not |
10 Windows. this module overrides definitions in util.py. if not |
10 # 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 |
11 # used. |
12 used. |
|
13 ''' |
|
14 |
12 |
15 import win32api |
13 import win32api |
16 |
14 |
17 import errno, os, sys, pywintypes, win32con, win32file, win32process |
15 import errno, os, sys, pywintypes, win32con, win32file, win32process |
18 import cStringIO, winerror |
16 import cStringIO, winerror |