This commit is contained in:
Kovid Goyal 2009-12-07 13:34:16 -07:00
parent 3ef62526e9
commit 39307bb354
3 changed files with 5 additions and 3 deletions

View File

@ -71,7 +71,7 @@ def debug_device_driver():
drives = []
print 'Drives detected:'
print '\t', '(ID, Partitions, Drive letter)'
for drive in wmi.WMI().Win32_DiskDrive():
for drive in wmi.WMI(find_classes=False).Win32_DiskDrive():
if drive.Partitions == 0:
continue
try:

View File

@ -31,7 +31,8 @@ class NOOK(USBMS):
#OSX_MAIN_MEM = ''
MAIN_MEMORY_VOLUME_LABEL = 'BN Nook Main Memory'
MAIN_MEMORY_VOLUME_LABEL = 'Nook Main Memory'
STORAGE_CARD_VOLUME_LABEL = 'Nook Storage Card'
EBOOK_DIR_MAIN = 'my documents'
SUPPORTS_SUB_DIRS = True

View File

@ -209,7 +209,8 @@ class Device(DeviceConfig, DevicePlugin):
return (msz, casz, cbsz)
def windows_match_device(self, drive, attr):
pnp_id = str(drive.PNPDeviceID).upper()
pnp_id = (str(drive.PNPDeviceID) if not isinstance(drive, basestring)
else str(drive)).upper()
device_id = getattr(self, attr)
def test_vendor():