summaryrefslogtreecommitdiff
path: root/django/core/files/locks.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/files/locks.py')
-rw-r--r--django/core/files/locks.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/django/core/files/locks.py b/django/core/files/locks.py
index 42631b3492..c46b00b905 100644
--- a/django/core/files/locks.py
+++ b/django/core/files/locks.py
@@ -28,8 +28,10 @@ def _fd(f):
if os.name == 'nt':
import msvcrt
- from ctypes import (sizeof, c_ulong, c_void_p, c_int64,
- Structure, Union, POINTER, windll, byref)
+ from ctypes import (
+ POINTER, Structure, Union, byref, c_int64, c_ulong, c_void_p, sizeof,
+ windll,
+ )
from ctypes.wintypes import BOOL, DWORD, HANDLE
LOCK_SH = 0 # the default