changeset 487:6b481331c355

test_util: fix up line endings
author Augie Fackler <durin42@gmail.com>
date Wed, 12 Aug 2009 16:54:21 -0400
parents 5607e81ba616
children a739568f8d48
files tests/test_util.py
diffstat 1 files changed, 27 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -33,39 +33,39 @@ if not 'win32' in sys.platform:
         os.kill(popen_obj.pid, 9)
 else:
     import ctypes
-    from ctypes.wintypes import BOOL, DWORD, HANDLE, UINT
-
-    def win_status_check(result, func, args):
-        if result == 0:
-            raise ctypes.WinError()
-        return args
-
-    def WINAPI(returns, func, *params):
-        assert len(params) % 2 == 0
-    
-        func.argtypes = tuple(params[0::2])
-        func.resvalue = returns
-        func.errcheck = win_status_check
-
-        return func
+    from ctypes.wintypes import BOOL, DWORD, HANDLE, UINT
+
+    def win_status_check(result, func, args):
+        if result == 0:
+            raise ctypes.WinError()
+        return args
+
+    def WINAPI(returns, func, *params):
+        assert len(params) % 2 == 0
+
+        func.argtypes = tuple(params[0::2])
+        func.resvalue = returns
+        func.errcheck = win_status_check
+
+        return func
 
     # dwDesiredAccess
     PROCESS_TERMINATE = 0x0001
 
-    OpenProcess = WINAPI(HANDLE, ctypes.windll.kernel32.OpenProcess,
-        DWORD, 'dwDesiredAccess',
-        BOOL, 'bInheritHandle',
-        DWORD, 'dwProcessId',
-    )
+    OpenProcess = WINAPI(HANDLE, ctypes.windll.kernel32.OpenProcess,
+        DWORD, 'dwDesiredAccess',
+        BOOL, 'bInheritHandle',
+        DWORD, 'dwProcessId',
+    )
 
-    CloseHandle =  WINAPI(BOOL, ctypes.windll.kernel32.CloseHandle,
-        HANDLE, 'hObject'
-    )
+    CloseHandle =  WINAPI(BOOL, ctypes.windll.kernel32.CloseHandle,
+        HANDLE, 'hObject'
+    )
 
-    TerminateProcess = WINAPI(BOOL, ctypes.windll.kernel32.TerminateProcess,
-        HANDLE, 'hProcess',
-        UINT, 'uExitCode'
-    )
+    TerminateProcess = WINAPI(BOOL, ctypes.windll.kernel32.TerminateProcess,
+        HANDLE, 'hProcess',
+        UINT, 'uExitCode'
+    )
 
     def kill_process(popen_obj):
         phnd = OpenProcess(PROCESS_TERMINATE, False, popen_obj.pid)