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.
This commit is contained in:
Dionisio E Alonso 2015-04-15 18:27:08 -03:00
parent 08b94223d3
commit 5721c1b273
1 changed files with 1 additions and 1 deletions

View File

@ -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()