mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
IGN:...
This commit is contained in:
parent
c41dc2d6d0
commit
1118d338e0
@ -117,6 +117,7 @@ def debug_device_driver():
|
||||
print 'Trying to open device...'
|
||||
d = dev()
|
||||
d.open()
|
||||
print 'Main memory:', repr(d._main_prefix)
|
||||
print 'Total space:', d.total_space()
|
||||
break
|
||||
|
||||
|
@ -106,7 +106,7 @@ class Device(_Device):
|
||||
|
||||
@classmethod
|
||||
def _windows_space(cls, prefix):
|
||||
if prefix is None:
|
||||
if not prefix:
|
||||
return 0, 0
|
||||
win32file = __import__('win32file', globals(), locals(), [], -1)
|
||||
try:
|
||||
|
@ -42,10 +42,6 @@ class USBMS(Device):
|
||||
report_progress=report_progress)
|
||||
|
||||
def get_device_information(self, end_session=True):
|
||||
"""
|
||||
Ask device for device information. See L{DeviceInfoQuery}.
|
||||
@return: (device name, device version, software version on device, mime type)
|
||||
"""
|
||||
return (self.__class__.__name__, '', '', '')
|
||||
|
||||
def books(self, oncard=False, end_session=True):
|
||||
|
Loading…
x
Reference in New Issue
Block a user