Browse Source

Don't import ctypes types from winapi. Thanks to tigrang

Ask Solem 13 years ago
parent
commit
be08d6c0de
1 changed files with 6 additions and 2 deletions
  1. 6 2
      celery/concurrency/processes/_win.py

+ 6 - 2
celery/concurrency/processes/_win.py

@@ -8,8 +8,12 @@ import os
 
 # Code based on the winappdbg project http://winappdbg.sourceforge.net/
 # (BSD License)
-from ctypes import byref, sizeof, windll, Structure, WinError, POINTER
-from ctypes.wintypes import DWORD, c_size_t, LONG, c_char, c_void_p
+from ctypes import (
+    byref, sizeof, windll,
+    Structure, WinError, POINTER,
+    c_size_t, c_char, c_void_p,
+)
+from ctypes.wintypes import DWORD, LONG
 
 ERROR_NO_MORE_FILES = 18
 INVALID_HANDLE_VALUE = c_void_p(-1).value