From: Daira Hopwood Date: Tue, 27 Oct 2015 12:02:57 +0000 (+0000) Subject: Consolidate Windows-specific imports in fileutil to avoid pyflakes warnings. X-Git-Url: https://git.rkrishnan.org/cyclelanguage?a=commitdiff_plain;h=51b4c3166ac9f9c7ea23753d5867254666fd9c02;p=tahoe-lafs%2Ftahoe-lafs.git Consolidate Windows-specific imports in fileutil to avoid pyflakes warnings. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/util/fileutil.py b/src/allmydata/util/fileutil.py index 74afd008..4ea1263e 100644 --- a/src/allmydata/util/fileutil.py +++ b/src/allmydata/util/fileutil.py @@ -343,10 +343,6 @@ def to_windows_long_path(path): have_GetDiskFreeSpaceExW = False if sys.platform == "win32": - from ctypes import WINFUNCTYPE, windll, POINTER, byref, c_ulonglong, create_unicode_buffer, \ - get_last_error - from ctypes.wintypes import BOOL, DWORD, LPCWSTR, LPWSTR - # GetEnvironmentVariableW = WINFUNCTYPE( DWORD, @@ -579,9 +575,6 @@ def reraise(wrapper): raise wrapper_exc.__class__, wrapper_exc, tb if sys.platform == "win32": - from ctypes import WINFUNCTYPE, windll, WinError, get_last_error - from ctypes.wintypes import BOOL, DWORD, LPCWSTR, LPVOID - # ReplaceFileW = WINFUNCTYPE( BOOL,