mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 08:15:53 +01:00
IGN:...
This commit is contained in:
parent
c41dc2d6d0
commit
1118d338e0
3 changed files with 2 additions and 5 deletions
|
|
@ -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 @@ def card_prefix(self, end_session=True):
|
|||
|
||||
@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 @@ def __init__(self, key='-1', log_packets=False, report_progress=None):
|
|||
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…
Reference in a new issue