From 5721c1b27369cac162902100f1af978865f3696d Mon Sep 17 00:00:00 2001 From: Dionisio E Alonso Date: Wed, 15 Apr 2015 18:27:08 -0300 Subject: [PATCH] Delete diskette drive letters from device list The device list was generated from the complete uppercase alphabet. Diskette letters A and B doesn't need to be tested, so the new list starts from letter C. --- SystemInformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SystemInformation.py b/SystemInformation.py index 5aa7e65..1483faa 100644 --- a/SystemInformation.py +++ b/SystemInformation.py @@ -96,7 +96,7 @@ class SystemInformation: return (mem_status.dwTotalPhys, mem_status.dwAvailPhys) def _disk(self): - drives = [c + ':' for c in list(string.ascii_uppercase)] + drives = [c + ':' for c in list(string.ascii_uppercase[2:])] freeuser = ctypes.c_int64() total = ctypes.c_int64() free = ctypes.c_int64()