From 9302a36391b4bb0a26d5be8138260600b82233ca Mon Sep 17 00:00:00 2001 From: daid Date: Thu, 26 Nov 2015 15:29:32 +0100 Subject: [PATCH] Small codestyle fix. --- .../WindowsRemovableDrivePlugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py b/plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py index 3723d48231..ced1dcc610 100644 --- a/plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py +++ b/plugins/RemovableDriveOutputDevice/WindowsRemovableDrivePlugin.py @@ -65,11 +65,11 @@ class WindowsRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin): continue # Check for the free space. Some card readers show up as a drive with 0 space free when there is no card inserted. - freeBytes = ctypes.c_longlong(0) - if windll.kernel32.GetDiskFreeSpaceExA(drive.encode("ascii"), ctypes.byref(freeBytes), None, None) == 0: + free_bytes = ctypes.c_longlong(0) + if windll.kernel32.GetDiskFreeSpaceExA(drive.encode("ascii"), ctypes.byref(free_bytes), None, None) == 0: continue - if freeBytes.value < 1: + if free_bytes.value < 1: continue drives[drive] = "{0} ({1}:)".format(volume_name, letter)